sync/class.jetpack-sync-module-posts.php 1 location
|
@@ 78-86 (lines=9) @@
|
| 75 |
|
return array( $args[0], $this->filter_post_content_and_add_links( $args[1] ), $args[2] ); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
function filter_blacklisted_post_types( $args ) { |
| 79 |
|
$post = $args[1]; |
| 80 |
|
|
| 81 |
|
if ( in_array( $post->post_type, Jetpack_Sync_Settings::get_setting( 'post_types_blacklist' ) ) ) { |
| 82 |
|
return false; |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
return $args; |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
function remove_embed() { |
| 89 |
|
global $wp_embed; |
sync/class.jetpack-sync-module-meta.php 1 location
|
@@ 107-113 (lines=7) @@
|
| 104 |
|
return true; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
function is_post_type_allowed( $post_id ) { |
| 108 |
|
$post = get_post( $post_id ); |
| 109 |
|
if ( in_array( $post->post_type, Jetpack_Sync_Settings::get_setting( 'post_types_blacklist' ) ) ) { |
| 110 |
|
return false; |
| 111 |
|
} |
| 112 |
|
return true; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
function filter_meta_post( $args ) { |
| 116 |
|
if ( ! $this->is_post_type_allowed( $args[1] ) ) { |