Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP_ENV relation to WP native environment type (wp_get_environment_type) #520

Open
samikeijonen opened this issue Apr 16, 2021 · 1 comment

Comments

@samikeijonen
Copy link
Contributor

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.

@JoosuaKoskinen
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants