Skip to content

Instantly share code, notes, and snippets.

@FriendlyWP
Last active July 6, 2016 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FriendlyWP/81d5efc8fac37aadb4ca2f70533a8026 to your computer and use it in GitHub Desktop.
Save FriendlyWP/81d5efc8fac37aadb4ca2f70533a8026 to your computer and use it in GitHub Desktop.
Run Jetpack in development mode on localhost only
/****
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