wp-discourse
wp-discourse copied to clipboard
Support `WP_ENVIRONMENT_TYPE`
trafficstars
Since version 5.5, WordPress supports WP_ENVIRONMENT_TYPE environment variable and wp_get_environment_type function.
Using this constant/function could be really useful to avoid publishing content to an attached Discourse instance while not in production. For example, JetPack do not send any content to wp.com if environment is staging or development. Doing the same with wp-discourse would help managing staging environments.