wp-discourse icon indicating copy to clipboard operation
wp-discourse copied to clipboard

Support `WP_ENVIRONMENT_TYPE`

Open LeoColomb opened this issue 4 years ago • 0 comments

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.

LeoColomb avatar Dec 05 '20 01:12 LeoColomb