Plugin sends Yos for all post types
-
The plugin in its current form sends a Yo whenever anything at all is published — including custom post types. For my site (and most others, I suspect), I don’t want a Yo sent out whenever something new is added to some CPT database — just when a standard post/article is published. I added this to our install to do that — maybe it might be a good thing to consider for the plugin?
function send_yo_on_publish( $new_status, $old_status, $post ) { $theposttype = get_post_type( $post ); if ( $new_status == 'publish' && $new_status != $old_status && $theposttype == 'post' ) { $link = get_permalink( $post->ID ); yo_all($link); } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Plugin sends Yos for all post types’ is closed to new replies.