TODO
-
-
Save davilera/f6896c92b0c7855b86df13a80f6a8715 to your computer and use it in GitHub Desktop.
Nelio Content Staging URLs
This file contains 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
<?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' ); |
This file contains 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
<?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