Skip to content

Instantly share code, notes, and snippets.

@jeffsebring
Created November 22, 2013 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffsebring/7592943 to your computer and use it in GitHub Desktop.
Save jeffsebring/7592943 to your computer and use it in GitHub Desktop.
Stop Push Syndication Plugin from Auto Publishing
<?php
// 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