Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.