Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

nosilver4u on "sslverify => false just stopped working for wp_remote_post"

$
0
0

I was working on my plugin all last week with no troubles, and then last night, my plugin (EWWW Image Optimizer) started throwing warnings about the ssl certificate. I already knew the certs were not valid, because the plugin connects by a dynamically retrieved IP address instead of hostname. So I checked my code, and I'm using the sslverify flag during wp_remote_post to generally ignore the "errors". Any ideas why this would start happening all of a sudden?

I have no other plugins active, and using the default twenty fifteen theme on my dev site with PHP 5.6.4 on Ubuntu 15.04.

Just in case there are any doubts (I wasn't sure myself), I was doing howto videos on Friday, where I specifically demonstrated the particular functionality which is now throwing the errors.

UPDATE: I also tried using the 'https_ssl_verify' and 'https_local_ssl_verify' filters to test the sslverify value, and they both show that it IS already set to false, and I return false via the function just to be safe, and then the error still occurs in the same function call.


Kate_BTN on "Popup MailChimp code problem"

$
0
0

Hi,

I've generated popup code from my MialChimp account. I'm not sure however where to paste it, as I want it to appear only on blog posts pages and not everywhere.

Could you assist?

Here's the code:
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us11.list-manage.com","uuid":"e95a1688d025194b485fa26ab","lid":"0b8a22515d"}) })

Thanks in advance!
Kasia

alexmoretoni2 on "add google translate theme wordpress"

$
0
0

Hello
I'm trying to install the Google translator on a wordpress theme but I can not call it on the menu or at the top.

I would like to add the Google Translator in the theme menu, it is very good

Could someone help me with this task ?
and down the code for Google translator

----------------------------------------

<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'pt', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

Physalice on "Captions in TinyMCE"

$
0
0

Hello everyone !

I'm currently customizing the captions for a client, and I have two separate problems that I can't seem to find a fix for.
#1 : I'm bypassing the standard WP caption shortcode in order to display the description of the media alongside the actual caption. I do that with the following filter :

add_filter('img_caption_shortcode', 'ffap_img_caption_shortcode', 10, 3);
function ffap_img_caption_shortcode($val, $attr, $content = null) {

  extract(shortcode_atts(array(
    'id'    => '',
    'align' => 'alignnone',
    'width' => '',
    'caption' => ''
  ), $attr));

  if ( 1 > (int) $width || empty($caption) ) return $content;

  // Grab ID to query post_content [description] field for image
  preg_match('/([\d]+)/', $id, $matches);

  // get the description html
  $description_html = '';
  if ( $matches[0] ) {
    global $wpdb;
    $custom_description = $wpdb->get_row("SELECT post_content FROM $wpdb->posts WHERE ID = {$matches[0]};");
    if ($custom_description->post_content) {
      $description_html = "<p class=\"caption--description\">{$custom_description->post_content}</p>";
    }
  }

  // get the caption html and other fragments for the attachement
  $caption_html = "<p class=\"wp-caption-text\">{$caption}</p>";
  $id_html      = esc_attr($id);
  $align_html 	= esc_attr($align);
  $style_html 	= sprintf('width: %s px', 10 + (int)$width);
  $content_html = do_shortcode($content);

  return "<figure id=\"{$id_html}\" class=\"caption {$align_html}\">{$content_html}<figcaption>{$caption_html}{$description_html}</figcaption></figure>";
}

That works perfectly fine, on the front end. However in the TinyMCE in the backend, the caption displays as usual. My client would get confused and so I would like to be able to see that description with the caption in the back end also. Any way that's possible ?

And then problem #2. When editing an image in the backend's visual editor using this button :
https://www.dropbox.com/s/rms3e7q240o0ovn/Capture%20d%27%C3%A9cran%202015-10-21%2014.40.05.png?dl=0 The opening pop up window does not allow for a quick modification of that description, only the caption. Any way I could add the description to that window ?

Thanks for any help !

wpgaijin on "Saving repeating fileds"

$
0
0

My plugins options page has repeating fields for one of the settings. I have the repeating part working but I cannot get the fields to save.

public function add_mimes_callback() {
  $option       = $this->ordered_uploads_options;
  $mimes        = $option[OU_PL_PREFIX . '_mimes'];
  $mime_folders = $this->mime_folders();
  ?>
  <script type="text/javascript">
    jQuery(document).ready(function($){
      $('#add-row').on('click', function() {
        var row = $('.empty-row.screen-reader-text').clone(true);
        row.removeClass('empty-row screen-reader-text');
        row.insertBefore('#repeatable-fieldset-one tbody>tr:last');
        jQuery('input, select', row).val('').attr('name', function(index, name) {
          return name.replace(/(\d+)/, function(fullMatch, n) {
            return Number(n) + 1;
          });
        });
        return false;
      });
      $('.remove-row').on('click', function() {
        $(this).parent().parent().remove();
        return false;
      });
    });
  </script>
  <table id="repeatable-fieldset-one" width="100%">
    <thead>
      <tr>
        <th>Extention</th>
        <th>Filetype</th>
        <th>Folder</th>
        <th></th>
      </tr>
    </thead>
    <tbody>
    <?php
      $counter = 1;
      if( $mimes ) {
        foreach( $mimes as $mime ) {
          $counter++;
          $extention = $option[$mimes]['ou_mime_extention_' . $counter];
          $filetype  = $option[$mimes]['ou_mime_filetype_' . $counter];
          $folder    = $option[$mimes]['ou_mime_folder_' . $counter];
          ?>
          <tr>
            <td>
              <input type="text" name="ou_options_settings['ou_mimes']['ou_mime_extention_<?php echo $counter; ?>']" value="<?php echo $extention; ?>" class="all-options">
            </td>
            <td>
              <input type="text" name="ou_options_settings['ou_mimes']['ou_mime_filetype_<?php echo $counter; ?>']" class="all-options">
            </td>
            <td>
              <select name="ou_options_settings['ou_mimes']['ou_mime_folder_<?php echo $counter; ?>']">
                <?php foreach ( $mime_folders as $label => $value ) : ?>
                  <option value="<?php echo $value; ?>"<?php selected( $field['select'], $value ); ?>><?php echo $label; ?></option>
                <?php endforeach; ?>
              </select>
            </td>
            <td>
              <a class="button remove-row" href="#">Remove</a>
            </td>
          </tr>
          <?php
        }
      } else {
        ?>
        <tr>
          <td>
            <input type="text" name="ou_options_settings['ou_mimes']['ou_mime_extention_1']" class="all-options">
          </td>
          <td>
            <input type="text" name="ou_options_settings['ou_mimes']['ou_mime_filetype_1']" class="all-options">
          </td>
          <td>
            <select name="ou_options_settings['ou_mimes']['ou_mime_folder_1']">
              <?php foreach ( $mime_folders as $label => $value ) : ?>
                <option value="<?php echo $value; ?>"><?php echo $label; ?></option>
              <?php endforeach; ?>
            </select>
          </td>
          <td>
            <a class="button remove-row" href="#">Remove</a>
          </td>
        </tr>
        <?php
      }
      ?>
      <tr class="empty-row screen-reader-text">
        <td>
          <input type="text" name="ou_options_settings['ou_mimes']['ou_mime_extention_1']" class="all-options">
        </td>
        <td>
          <input type="text" name="ou_options_settings['ou_mimes']['ou_mime_filetype_1']" class="all-options">
        </td>
        <td>
          <select name="ou_options_settings['ou_mimes']['ou_mime_folder_1']">
            <?php foreach ( $mime_folders as $label => $value ) : ?>
              <option value="<?php echo $value; ?>"><?php echo $label; ?></option>
            <?php endforeach; ?>
          </select>
        </td>
        <td>
          <a class="button remove-row" href="#">Remove</a>
        </td>
      </tr>
      <?php
    ?>
    </tbody>
  </table>
  <p><a id="add-row" class="button" href="#">Add Mime</a></p>
  <?php
} // end mime_repeater

Here's a link to the full code Gist

I've been trying to get this to work for days. Unfortunately, I can't find very much on repeatable fields, so If any one can help me out I'd really appreciate it.

somebuddy on "Adding specific class to the optional image in WP image gallery"

$
0
0

Hello, guys!
I trying to create image gallery in which some images will have some distinct class from another to achieve variable items width.
Can somebuddy answer to me is it possible to add such functionality to standard wp gallery? I found some solutions how to redacting gallery output by

remove_shortcode('gallery', 'gallery_shortcode');
add_shortcode('gallery', 'custom_gallery');

But this is not what I need.
Also I trying to add some custom checkbox to image in media library like this:

function ik_image_attachment_fields_to_edit($form_fields, $post) {
    //we use this variable to set whether or not the checkbox is currently checked
    //defaults to not being checked
    $checked = get_post_meta($post->ID, "_ik_is_hero", true) ? "CHECKED" : "";

    //to add a field to the form, there are a few values to set here
    //label: the label of the field being output
    //input: the type of input being output - can use 'html' as value for more custom control
    //value: the current value of the input
    //helps: the descriptive text shown below the field
    //html: the custom html to use for a field if input is set to 'html' (see: 'ik_is_hero')
    $form_fields["ik_is_hero"] = array(
        "label" => __("Show In Hero Widget"),
        'input' => 'html',
        'html'  => "<input type='checkbox'
                name='attachments[{$post->ID}][ik_is_hero]'
                id='attachments[{$post->ID}][ik_is_hero]'
                        value='1' {$checked}/><br />",
        "helps" => __("If checked, this image will show in the widget."),
    );

   return $form_fields;
}

// now attach our function to the hook
add_filter("attachment_fields_to_edit", "ik_image_attachment_fields_to_edit", null, 2);

function ik_image_attachment_fields_to_save($post, $attachment) {
    //for the standard input, we check to see if it's set and, if so, save it
    //for the checkbox we save the value if it's currently checked
    //if it's not checked there won't be a value set, so we set it to '0'
    if( isset($attachment['ik_is_hero']) ){
        update_post_meta($post['ID'], '_ik_is_hero', $attachment['ik_is_hero']);
    } else {
        update_post_meta($post['ID'], '_ik_is_hero', 0);
    }
    return $post;
}

// now attach our function to the hook
add_filter("attachment_fields_to_save", "ik_image_attachment_fields_to_save", null , 2);

This is pretty cool, but now i cant figure out how can i get this checkbox in my custom gallery. I trying to do it like this:
get_post_meta($post['ID'], '_ik_is_hero', true)
but it return to me just empty string in all cases.

This is my code for rewrite standard wp gallery:

/**
 * ----------------------------------------------------------------------------------------
 * 10.0 - Create custom gellery shortcode
 * ----------------------------------------------------------------------------------------
 */
remove_shortcode('gallery', 'gallery_shortcode');
add_shortcode('gallery', 'custom_gallery');

function custom_gallery($attr, $elwidth) {

    $post = get_post();
    static $instance = 0;
    $instance++;

    # hard-coding these values so that they can't be broken

    $attr['columns'] = 1;
    $attr['size'] = 'full';
    $attr['link'] = 'none';
    $attr['orderby'] = 'post__in';
    $attr['include'] = $attr['ids'];

    #Allow plugins/themes to override the default gallery template.

    $output = apply_filters('post_gallery', '', $attr);

    if ($output != '')
        return $output;

    # We're trusting author input, so let's at least make sure it looks like a valid orderby statement

    if (isset( $attr['orderby'])) {
        $attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );
        if (!$attr['orderby'])
            unset($attr['orderby']);
    }

    extract(shortcode_atts(
        array(
        'order'      => 'ASC',
        'orderby'    => 'menu_order ID',
        'id'         => $post->ID,
        'itemtag'    => 'div',
        'icontag'    => 'div',
        'captiontag' => 'p',
        'columns'    => 1,
        'size'       => 'thumbnail',
        'include'    => '',
        'exclude'    => ''
    ), $attr));

    $id = intval($id);
    if ('RAND' == $order)
        $orderby = 'none';

    if (!empty($include)) {
        $_attachments = get_posts(
            array(
                'include' => $include,
                'post_status' => 'inherit',
                'post_type' => 'attachment',
                'post_mime_type' => 'image',
                'order' => $order,
                'orderby' => $orderby
                )
            );

        $attachments = array();
        foreach ($_attachments as $key => $val) {
            $attachments[$val->ID] = $_attachments[$key];

        }

    } elseif (!empty($exclude)) {
        $attachments = get_children(
            array(
                'post_parent' => $id,
                'exclude' => $exclude,
                'post_status' => 'inherit',
                'post_type' => 'attachment',
                'post_mime_type' => 'image',
                'order' => $order,
                'orderby' => $orderby
            )
        );
    } else {
        $attachments = get_children(
            array(
                'post_parent' => $id,
                'post_status' => 'inherit',
                'post_type' => 'attachment',
                'post_mime_type' => 'image',
                'order' => $order,
                'orderby' => $orderby
            )
        );
    }

    if (empty($attachments))
        return '';

    $gallery_style = $gallery_div = '';

    if (apply_filters('use_default_gallery_style', true))
        $gallery_style = "<!-- see gallery_shortcode() in functions.php -->";
    $gallery_div = "<div class='row homepage-gallery-wrap gallery gallery-size-full'>";

    $output = apply_filters('gallery_style', $gallery_style . "\n\t\t" . $gallery_div);

    foreach ($attachments as $id => $attachment) {

        $widthclass='';
        if($elwidth == true) $widthclass = "gallery-item--width2";
        $link = wp_get_attachment_link($id, 'full', false, false);
        !is_page_template('template-gallery.php')? $itemclass='' : $itemclass='';
        $output .= "<div class='gallery-item $widthclass $itemclass'>";

        $output .= "<div class='homepage-gallery-icon'>
                        $link
                    </div>";

        if ( $captiontag && trim($attachment->post_excerpt) ) {
            $output .= "
                <p class='wp-caption-text homepage-gallery-caption'>
                " . wptexturize($attachment->post_excerpt) . "
                </p>";
        }
        $output .= "</div>";
    }
    $output .= "</div>\n";
    return $output;
}

Can somebuddy answer me is it possible way to achieve such functionality, like i wrote previously? And if it right, maybe it will be obvious what i doing wrong.
Also i think about using ACF plugin for creating such gellery. Is it possible to do it with its help? Since this functionality only allowed for pro version it'l be cool to realize its possibilities before bying it.
And maybe somebuddy know some more elegant way to achieve topic target?
Thanks you a lot!

lolo23 on "Using permalinks with unique meta_value query"

$
0
0

I have some code which is pulling a list of posts for a category and displaying a list of unique values for a custom field, which for my purpose is showing an example of each product type.
Where I am struggling is I want to include a permalink, so each of those 'examples' link to their respective post.
My current code is returning the list of unique values, but they all have an identical permalink.
I would appreciate any help you could give to fix this.

<?php
$collection = get_posts(array(
          'category' =>'hats',
          'numberposts'=>-1,
          'meta_key' => 'product_name',
          'meta_value' => ''
));
$allprodnames = array();
foreach( $collection as $collpost ) {
	$allprodnames[]= get_post_meta( $collpost->ID, 'product_name', true );
}
$prodnames = array_unique($allprodnames);
global $post;
foreach ($prodnames as $post) {
	setup_postdata($post);
?>
	<li>
	<a href="<?php echo get_permalink($post->ID); ?>"><?php echo $post; ?></a>
	</li>
<?php
	}
?>

muntesco on "add register button to the main menu"

$
0
0

Hy. An old question.
I have a code for login/logout in my functions.php and in works perfectly.
Now, I need to provide a Register link for non logged'in and for logged in for free (I have an s2member plugin and it would be a membership page with register options).

where do I need to put it inside my main code? what should I add?
My code is:

add_filter( 'wp_nav_menu_items', 'wti_loginout_menu_link', 10, 2 );

function wti_loginout_menu_link( $items, $args ) {
	if ($args->theme_location == 'ast-menu-primary') {
	if (is_user_logged_in()) {
	$items .= '<li><a href="http://salivary.ilpatologo.com/getinside/?action=logout&_wpnonce=09895867b7">Log Out</a></li>';      }
	else {
	$items .= '<li><a href="http://salivary.ilpatologo.com/getinside/">Log In</a></li>';      }   }

return $items;

}

Also, need to add a line of code to show username when logged in.

my website is:
salivary.ilpatologo.com

thanks


masonify on "Remove Meta Box if CPT cutom Meta Data exists"

$
0
0

I have a CPT that each post can link to an associated User Account. This is done with a dropdown box that lists the user accounts and saves the user ID to the custom meta data field 'attach_user_ID'

If the CPT has an associated user ID (user account) attached, it displays the associated information with that user account, email, phone and more.

This all works fine except that if the post doesn't have an associated user account, I want to hide the meta box that displays that extended information.

Been banging my head on this one for a while.

code is as follows:

Add custom meta boxes:

add_action("admin_init", "admin_init");  //Add custom meta boxes and fields to CPT Lodge Members (officers)

function admin_init(){
    add_meta_box("assoc_info", "Associated Information", "assoc_info", "officers", "normal", "low");
}

Left out the code that adds the other meta boxes that store the user ID, but this works fine, and I can call the user ID ok from most areas of the code.

function remove_assoc_info_meta_box() {

    global $post;

    //Can't see attach_user_ID at this point, displays nothing.
    echo get_post_meta( $post->ID, "attach_user_ID", true);

    remove_meta_box('assoc_info', 'officers','normal');
}

//if ( empty( get_post_meta( $post->ID, 'attach_user_ID' ) )) {
add_action('admin_menu', 'remove_assoc_info_meta_box');
//}

the remove meta box code works, but I can't check the custom meta data value at this point in the code.

If I move the add_action(remove meta box) code to a portion of the code where I can check the user ID, the meta box doesn't hide.

any help greatly appreciated.

jennylovett on "Sililoquy Slider - toggle captions"

$
0
0

Ive got this mostly worked out - where I can toggle my captions on and off using the "info" button on my page, but I need the caption hidden by default - any suggestions? here's a link the the page

http://thebrandid.com/firstbay/projects-2/silverado/

the caption is the info overlaying the image.

thanks!

Statsman on "Instead of mysql_fetch_array() ... ?"

$
0
0

I ran into an issue with the latest update because I was using the mysql_query() function rather than $wpdb->get_results() - it kept returning an error that Access was denied (no password to get in the db) where it had always worked in the past.

I solved the issue of getting in to the database but I'm still using mysql_fetch_array() - which isn't working for me. What should I be using instead? Right now I'm not getting any results that I can use - but I'm not failing on an error, either.

Abatap on "Strange $wpdb->get_var behavior"

$
0
0

Hello, guys. I'm having a weird problem with a seemingly trivial task. Lets say I have a simple wrapper function to acquire certain variables from database using the wpdb class functionality wordpress provides.

Here is an example code:

$result = get_product_data($product_id, 'product_price');

echo $result; // prints 'product_price' instead of acquired column value

//returns whole row if the second arg is not set
function get_product_data($id, $column_to_get = null) {

  global $wpdb;

  if (isset($column_to_get)) {

    //strange behavior here
    return $wpdb->get_var($wpdb->prepare('SELECT %s FROM '.$wpdb->prefix.'shop_products WHERE product_id=%d', $column_to_get , $id));

  } else {

    //this one works just fine
    return $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$wpdb->prefix.'shop_products WHERE product_id=%d', $id), ARRAY_A);

  }
}

The problem seems to be related to the second arg we feed to $wpdb->prepare here as hardcoding it in the query string itself gives you an expected result. So what is the problem here? Is this some bizzare php expression evaluation quirk or am I doing something terribly stupid?

Mike Smith on "How to re-order RSS Items into custom feed - plugin?"

$
0
0

Hello - I'm looking for a way to reorder RSS items into a (separate) custom feed. This is for a daily email newsletter (RSS driven) where we need to be able to move the positioning of the stories without changing their publish dates on the actual site.

I figured there would be a plugin that would allow me to drag / drop Post order to build a custom feed but I've had no luck in my searches.

It doesn't have to be a WordPress tool either - it could be something third party that ingests the feed, manipulated it and spits out a new feed (something like MailChimp's chimpfeedr.com tool).

Any suggestions would be much appreciated!

mackconsult on "Add a search URL on a page"

$
0
0

I have pages on my website; http://coastguardcaptain.com/

on the pages charters, deliveries, lessons, & management I would like to have a link at the bottom of the page that would search through all the posts based on category, like charters. That would return all the posts that are under charters category.

There has to be a simple way to do this, because I thought I had done it before ..... just forgot.

gordelwig on "Reasons for bigint datatype in wordpress id columns"

$
0
0

(Posted this in the wrong sub forum first, sorry. Should be deleted there.)

I'm still getting into the WordPress framework, developing my first "real" Plugin and while thinking about my table structure couldn't help to notice that all WordPress core tables use bigint as datatype for any id column.

I'm wondering if anyone knows the reasoning behind this. For comments or post it may make sense, but for users? If a platform is expected to exceed 4 Billion users I doubt that WordPress will be the software of choice.

The only possible argument I can imagine would be performance benefits from using uniformly sized primary keys throughout the database. But that's just a very weak guess, because honestly I have no clue about the inner workings of any particular DBMS.

Why is it "bothering" me? If the usually sufficient int type would be used the fields would only require 4 Bytes of storage instead of 8. What's 4 Bytes? Imagine a big WordPress instance with 10 Million comments. Just looking at them that's id and post id, parent comment and author id (default to 0), per comment. So 10M*4*4B makes 160MB of wasted space.

It's still not a big number for current storage solutions but together with the other unnecessarily big fields it accumulates over the entire database. I just find it strange that it's the default setup for a largely distributed CMS. Seems like a needless waste of resources. Because I would hazard the guess that 99% of all WordPress installations will never accumulate even close to 4 Billion rows in any of their core tables.

I realize this comes off like a rant, but I'm really interested to know if there are any good reasons for this design decision. If anybody has more insight to it, sharing would be much appreciated!


Bojan Denic on "Fields locked after registration"

$
0
0

It's possible fields locked after registration completed such as username (Email, First Name, and Last Name)?

Thanx

stilfx on "reorder plugin menu position"

$
0
0

Looking for a function that I can use to reorder the admin position of a 3rd party plugin, and that will still work once said plugin gets updated.

- Backstory
AIO webmaster and All In One Events plugins are both forcing a menu position of 6. So if you load both plugins, the Events plugin "loses" and disappears.

I'd like a function to simply move AIO webmaster from say position 6 to somewhere else — best would be to remove the position all together, and have it fall into default menu order!

In the meantime, I'm hacking the AIO webmaster code from:

public function aiow_premium_menupage() {
		add_menu_page ( 'All in One Webmaster', 'AIO Webmaster', 'manage_options', 'aiow-premium', 'all_in_one_premium_webmaster_webmaster_page', plugins_url ( 'all-in-one-webmaster/images/favicon.ico' ), 6);

and removing the 6 position

public function aiow_premium_menupage() {
		add_menu_page ( 'All in One Webmaster', 'AIO Webmaster', 'manage_options', 'aiow-premium', 'all_in_one_premium_webmaster_webmaster_page', plugins_url ( 'all-in-one-webmaster/images/favicon.ico' ) );

..obviously, this only lasts until the plugin gets updated.

Any overriding function ideas to make that change stick?

LinusOnTheLine on "Change view and refresh wp.media"

$
0
0

I'm building a plugin which adds a new media tab. In this tab i display an iframe in which i can select images from another source and upload them to wordpress (using ajax).

This works just fine, the only problem I have now is that after I have uploaded my new image, I have to refresh the post I'm on to see the newly uploaded image(s).

What I want to achieve is something like:
wp.media.[go to browse uploaded images];
wp.media.[refresh the list]

I can't achieve any of them. wp.media.frame.close(); closes the window and i get an error on .open(), but even if i manually click "Add media" the last state is visible. If i go to the browsing mode and for example sort the media by a date or something, it get the newly uploaded images.

Any suggestions of how to achive this?
Found this thread but almost nothing here worked at all;
http://wordpress.stackexchange.com/questions/78230/trigger-refresh-for-new-media-manager-in-3-5

rfde on "Strange apply_filters in a plugin"

$
0
0

Hi everybody,
in a plugin I saw this strange (for me) apply_filters line:

return apply_filters( 'wpp::get_properties::result', $return, $args );

Can you tell me which function this line calls?

Thanks in advance

littlefoodcake on "Hide email from source code"

$
0
0

I really need to hide my email in the source code page. I started receiving spam solicitation emails.

At least, I can hide it? I read article, hide via a code or image. But I don't know where to insert the code.

I am @ littlefoodcake.net

Needs help!

Viewing all 8245 articles
Browse latest View live




Latest Images