How to remove a meta description or other contents
Use, wp_head http://codex.wordpress.org/Plugin_API/Action_Reference/wp_head Ref example: Clean up output added via wp_head()
Use, wp_head http://codex.wordpress.org/Plugin_API/Action_Reference/wp_head Ref example: Clean up output added via wp_head()
Take a look at my answer here, if you are trying to replace the post content: Edit the_content function
Not sure about the title part, but you should be able to set some defaults for images using update_option(). You can try adding the following to your functions.php to set the default size to large – you should be able to take it back out after it’s been called once so you’re not updating the … Read more
The right hook to use before inserting the post is wp_insert_post_data function tr_insert_post($data){ $post [‘post_title’] = “the title: “.$post [‘post_title’]; return $post; } add_action(‘wp_insert_post_data’, ‘tr_insert_post’,1,2); But I think that a better way to achieve that would be to save the post as is and translate later using a filter like the_content this way you save … Read more
What you could do is create a metabox for the ‘People’ custom post type which would have radio values ‘Not Sponsored’ and ‘Sponsored’ (Not Sponsored b default). PayPal posts some transaction details to the notify url you have specified. Once you recieve the proper information from PayPal, like payment status is completed, then you could … Read more
The two most common ways to add in such Plugin output directly into the template are: Use a Theme-provided action hook Instruct the user to add a Plugin function call manually into the template Some, though not many, Themes provide custom action hooks in the template, that you could use to output your Plugin content. … Read more
this value comes from the template tag the_author(). You can also filter this. But it is important, that you check, that the filter only work on the feeds; see the follow example at the check for is_feed(). After this i change the autor name only, if the string has the value ‘name_xyz’; here is the … Read more
This is how I managed to fix it, Thanks to Stephen Harris. add_action(‘save_post’, ‘parse_csv’, 10, 2); function parse_csv($post_id) { $_pid = $post_id; // Autosave, do nothing if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) return; // AJAX? Not used here if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) return; // Check user permissions if ( … Read more
A very basic fix would be to use one() instead of bind(). But why the function is called twice is still open. Ask your browser’s JavaScript inspector.
You can access that, using the additional variable in the Filter Functions. The Filter bloginfo_url uses the $show parameter (the parameter you use when calling bloginfo) and passes it to apply_filters. So hooking into bloginfo_url should be no problem, you just have to make a switch inside the function, and it only applies to e.g. … Read more