RSS Feed Custom Title?

Edited: Bad answer removed. Here is the working code: function custom_blogname_rss($val, $show) { if( ‘name’ == $show ) $out=”Custom Blog Name”; else $out = $val; return $out; } add_filter(‘bloginfo_rss’,’custom_blogname_rss’, 10, 2); Don’t forget to change Custom Blog Name to something useful. Put that code into a plugin.

How to remove “out of stock” variation options from size dropdown in woocommerce?

Initially. It should be said that WooCommerce is considered a plugin and therefore your question could probably be flagged as ‘Off-topic’. This (however) is such a bullshit and self-deprecating for this StackExchange, so I’ll answer it anyway. 🙂 But next time you have a WooCommerce-question, you should ask it on StackOverflow (apparantly). My first thought … Read more

Any Hook Called When Post Becomes Published?

Every time a post changes status, wp_transition_post_status function will be called. This triggers the actions ${old_status}_to_${new_status} and ${new_status}_${post->post_type}, so for example publish_post will be triggered here. A post with a date in the future will have the status future until it is actually published, so this should work for you.

Check if page parent has certain template

This question has been answered on Stack Overflow before: https://stackoverflow.com/a/14626254/844732 add_action( ‘admin_head’, ‘check_page_template’ ); function check_page_template() { global $post; if ( ‘page-homepage.php’ == get_post_meta( $post->ID, ‘_wp_page_template’, true ) ) { // The current page has the foobar template assigned // do something } }