@@ 44-49 (lines=6) @@ | ||
41 | * post_types => array( post_type slugs ): The post types to sync. Default: post, page |
|
42 | * post_stati => array( post_status slugs ): The post stati to sync. Default: publish |
|
43 | */ |
|
44 | static function sync_posts( $file, array $settings = null ) { |
|
45 | if ( is_network_admin() ) return; |
|
46 | $jetpack = Jetpack::init(); |
|
47 | $args = func_get_args(); |
|
48 | return call_user_func_array( array( $jetpack->sync, 'posts' ), $args ); |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @param string $file __FILE__ |
|
@@ 59-64 (lines=6) @@ | ||
56 | * comment_types => array( comment_type slugs ): The comment types to sync. Default: '', comment, trackback, pingback |
|
57 | * comment_stati => array( comment_status slugs ): The comment stati to sync. Default: approved |
|
58 | */ |
|
59 | static function sync_comments( $file, array $settings = null ) { |
|
60 | if ( is_network_admin() ) return; |
|
61 | $jetpack = Jetpack::init(); |
|
62 | $args = func_get_args(); |
|
63 | return call_user_func_array( array( $jetpack->sync, 'comments' ), $args ); |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * @param string $file __FILE__ |
|
@@ 71-76 (lines=6) @@ | ||
68 | * @param string $option, Option name to sync |
|
69 | * @param string $option ... |
|
70 | */ |
|
71 | static function sync_options( $file, $option /*, $option, ... */ ) { |
|
72 | if ( is_network_admin() ) return; |
|
73 | $jetpack = Jetpack::init(); |
|
74 | $args = func_get_args(); |
|
75 | return call_user_func_array( array( $jetpack->sync, 'options' ), $args ); |
|
76 | } |
|
77 | /** |
|
78 | * @param string $file __FILE__ |
|
79 | * @param string $option, Option name to sync |
|
@@ 82-87 (lines=6) @@ | ||
79 | * @param string $option, Option name to sync |
|
80 | * @param string $option ... |
|
81 | */ |
|
82 | static function sync_constant( $file, $constant ) { |
|
83 | if ( is_network_admin() ) return; |
|
84 | $jetpack = Jetpack::init(); |
|
85 | $args = func_get_args(); |
|
86 | return call_user_func_array( array( $jetpack->sync, 'constant' ), $args ); |
|
87 | } |
|
88 | ||
89 | /* Internal Methods */ |
|
90 |