static function prevent_publicize_blacklisted_posts($should_publicize, $post) { require_once dirname(__FILE__) . '/class.jetpack-sync-settings.php'; if (in_array($post->post_type, Jetpack_Sync_Settings::get_setting('post_types_blacklist'))) { return false; } return $should_publicize; }