blob: e0722317072eda420f3dac0a312410f4e9c862f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/**
* Module Name: JSON API
* Module Description: Allow applications to securely access your content through the cloud.
* Sort Order: 100
* First Introduced: 1.9
* Requires Connection: Yes
*/
function jetpack_json_api_toggle() {
$jetpack = Jetpack::init();
$jetpack->sync->register( 'noop' );
if ( false !== strpos( current_filter(), 'jetpack_activate_module_' ) ) {
Jetpack::check_privacy( __FILE__ );
}
}
add_action( 'jetpack_activate_module_json-api', 'jetpack_json_api_toggle' );
add_action( 'jetpack_deactivate_module_json-api', 'jetpack_json_api_toggle' );
|