wp_get_development_mode


wp_get_development_mode ( No parameters )

Returns:
  • (string) The current development mode.
Defined at:

Description

Retrieves the current development mode.The development mode affects how certain parts of the WordPress application behave, which is relevant when developing for WordPress. Development mode can be set via the `WP_DEVELOPMENT_MODE` constant in `wp-config.php`. Possible values are 'core', 'plugin', 'theme', 'all', or an empty string to disable development mode. 'all' is a special value to signify that all three development modes ('core', 'plugin', and 'theme') are enabled. Development mode is considered separately from `WP_DEBUG` and wp_get_environment_type(). It does not affect debugging output, but rather functional nuances in WordPress. This function retrieves the currently set development mode value. To check whether a specific development mode is enabled, use wp_is_development_mode().

Related Functions

wp_is_development_mode, wp_get_environment_type, wp_get_document_title, wp_register_development_scripts, wp_get_elements_class_name

Top Google Results

User discussions

wpseek mobile