Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Stop Push Syndication Plugin from Auto Publishing
// Remove `publish_pulled_post` hook from `syn_pre_pull_posts` filter during cron
add_filter( 'syn_pre_pull_posts', 'tenup_dont_publish_pulled_post' ), 100 );
function tenup_dont_publish_pulled_post( $posts ) {
// Remove auto publish action
if ( class_exists( 'Syndication_WP_XML_Client' ) )
remove_action( 'syn_post_pull_new_post', array( 'Syndication_WP_XML_Client' , 'publish_pulled_post' ), 10, 5 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.