Custom xmlrpc request does not pass parameters?
Custom xmlrpc request does not pass parameters?
Custom xmlrpc request does not pass parameters?
I got it working in the end by using ‘template_redirect’ and changing the remove_action number from 8 to 1 🙂 // Remove ‘Genesis Co-Authors Plus’ author box and ‘filed under’ from custom post type add_action(‘template_redirect’, ‘lf_custom_cpt_display’); function lf_custom_cpt_display() { if ( is_singular( ‘local-bite’ ) ): { remove_action( ‘genesis_after_entry’, ‘gcap_author_box’, 1 ); remove_action( ‘genesis_entry_footer’, ‘genesis_entry_footer_markup_open’, 5 … Read more
is_page_template() doesn’t work with excerpt_length filter
Custom search fields and AJAX support
That’s a very good question. It goes down to the dark heart of the plugin API and best programming practices. For the following answer I created a simple plugin to illustrate the problem with easy to read code. <?php # -*- coding: utf-8 -*- /* Plugin Name: Anonymous OOP Action */ if ( ! class_exists( … Read more
‘apply_filters’ runs the value through all of the other hooks / functions attached to it. Try an experiment: print_r( $type ); print_r( apply_filters(“{$type}_upload_directory”, $type) ); While you might, in your case, get the same thing – the apply_filters makes sure that any other plugins that try to influence this upload directory will still work.
filter wptexturize doesn’t work on old posts titles
a little late, but it might be because this is a filter, and you’re adding it as an action, try add_filter( ‘wp_embed_handler_youtube’, ‘bigger_youtube_embeds’, 10, 4); function bigger_youtube_embeds($embed, $attr, $url, $rawattr) { // alter the $embed string… return $embed; }
Removing a line from a WP core function (comment_template.php) – filter or other technique?
The title of an attachment is not working