Last active
April 2, 2024 12:14
-
-
Save PatelUtkarsh/032ad987beaa8668f237892254f10dcf to your computer and use it in GitHub Desktop.
Disable jetpack sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Disable jetpack sync. | |
*/ | |
add_filter( 'jetpack_sync_modules', '__return_empty_array', PHP_INT_MAX ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternatively, If you don't want to add code, you can set the
jetpack_sync_settings_disable
option to 1.For single site:
For all site in the network: