Skip to content

Instantly share code, notes, and snippets.

@davilera
Last active November 7, 2017 14:42
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 davilera/f6896c92b0c7855b86df13a80f6a8715 to your computer and use it in GitHub Desktop.
Save davilera/f6896c92b0c7855b86df13a80f6a8715 to your computer and use it in GitHub Desktop.
Nelio Content Staging URLs
<?php
/**
* No URL should be considered as a staging URL.
*/
function nc_get_staging_urls() {
return array();
}//end nc_get_staging_urls()
add_filter( 'nelio_content_staging_urls', 'nc_get_staging_urls' );
<?php
/**
* Staging URLs are those that include the strings .dev or testing
*/
function nc_get_staging_urls() {
return array(
'testing',
'.dev',
);
}//end nc_get_staging_urls()
add_filter( 'nelio_content_staging_urls', 'nc_get_staging_urls' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment