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