A WordPress-centric search engine for devs and theme authors



wp_get_environment_type ›

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_get_environment_type', $current_env )
Parameters:
  • (string) $current_env The current environment type. Possible values include 'development', 'staging', 'production'.
    Required: Yes
Defined at:
Codex:

Filters the current environment type.

This filter runs before it can be used by plugins. It is designed for non-web runtimes. The value returned by this filter has a priority over both the WP_ENVIRONMENT_TYPE system variable and a constant of the same name.





Source

$current_env = apply_filters( 'wp_get_environment_type', $current_env );