Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Created January 25, 2016 18:39
Show Gist options
  • Save kraftbj/ad5fce1d75f6fd81d33d to your computer and use it in GitHub Desktop.
Save kraftbj/ad5fce1d75f6fd81d33d to your computer and use it in GitHub Desktop.
adding a staging site URL to Jetpack
add_filter( 'jetpack_known_staging', 'bk_my_personal_staging_domain');
function bk_my_personal_staging_domain( $known_staging ){
$known_staging['urls'][] = '#\staging\.example\.com$#i';
return $known_staging;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment