Created
November 22, 2013 01:05
-
-
Save jeffsebring/7592943 to your computer and use it in GitHub Desktop.
Stop Push Syndication Plugin from Auto Publishing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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