Last active
September 4, 2024 17:52
-
-
Save apsolut/5aae40d267d1397b03c1c1783170bc2b to your computer and use it in GitHub Desktop.
wp_get_environment_type
This file contains hidden or 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 | |
| /** | |
| * | |
| * @URL https://developer.wordpress.org/reference/functions/wp_get_environment_type/ | |
| * define( 'WP_ENVIRONMENT_TYPE', 'local' ); | |
| * for each environment put it to wp-config | |
| * | |
| / | |
| if ('local' === wp_get_environment_type() && is_page('123456')): ?> | |
| <?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment