Last active
July 6, 2016 14:35
-
-
Save FriendlyWP/81d5efc8fac37aadb4ca2f70533a8026 to your computer and use it in GitHub Desktop.
Run Jetpack in development mode on localhost only
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
/**** | |
USE JETPACK IN DEVELOPMENT MODE ON LOCALHOST | |
*****/ | |
if ( $_SERVER['SERVER_NAME'] == 'gladdestthing.dev' ) { // replace gladdestthing.dev with local url | |
add_filter( 'jetpack_development_mode', '__return_true' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment