Skip to content

Instantly share code, notes, and snippets.

@apsolut
Last active September 4, 2024 17:52
Show Gist options
  • Save apsolut/5aae40d267d1397b03c1c1783170bc2b to your computer and use it in GitHub Desktop.
Save apsolut/5aae40d267d1397b03c1c1783170bc2b to your computer and use it in GitHub Desktop.
wp_get_environment_type
<?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