Last active
March 26, 2025 15:34
-
-
Save otakupahp/48f3b5d76f1283b99226b071ae378b36 to your computer and use it in GitHub Desktop.
Run Jetpack Instant Search locally
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
| -- Replace table name as needed | |
| SELECT * FROM `wp_options` WHERE `option_name` LIKE '%jetpack_search%' ORDER BY option_name ASC; |
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 | |
| // If we are on localhost, force Jetpack online | |
| if ( defined( 'WP_LOCAL_DEV' ) && WP_LOCAL_DEV ) { | |
| add_filter( 'jetpack_offline_mode', '__return_false' ); | |
| } |
Author
Currently this only works locally for me if I add define( 'JETPACK_DEV_DEBUG', false ); to the wp-config file, incase anyone else is having trouble!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the tip @verytwisty. It's very useful