seravo-plugin icon indicating copy to clipboard operation
seravo-plugin copied to clipboard

WP_ENV relation to WP native environment type (wp_get_environment_type)

Open samikeijonen opened this issue 3 years ago • 1 comments

This is more like a question since I'm a little lost.

In Seravo stack there is WP_ENV constant? What is the relating to WP native wp_get_environment_type() function?.

I'm trying to decide which one to use in theme or custom plugin to check if we are on development environment or not.

samikeijonen avatar Apr 16 '21 10:04 samikeijonen

wp_get_environment_type doesn't work properly in our environment yet. WP_ENVIRONMENT_TYPE will be added soon and WP_ENV can be used as an alternative until that.

JoosuaKoskinen avatar Apr 20 '21 11:04 JoosuaKoskinen