eacDoojiggerEnvironment
in package
{eac}Doojigger Environment - Set WP_ENVIRONMENT_TYPE used by wp_get_environment_type()
Tags
Table of Contents
- OPTION_WP_ENVIRONMENT = 'eacDoojigger_wp_environment'
- add_wp_environment_field() : void
- add the environment select field html
- register_wp_environment_field() : void
- add the environment select field to general settings page
- setEnvironment() : void
- set wp_environment, custom option, robots, and add network/general settings field
- update_wp_environment_field() : void
- save the environment select field to general settings page
- wpmu_wp_environment_field() : void
- add the environment select field to network settings page
Constants
OPTION_WP_ENVIRONMENT
public
string
OPTION_WP_ENVIRONMENT
= 'eacDoojigger_wp_environment'
option name added to 'General' or 'Network' settings to set WP_ENVIRONMENT_TYPE see register_wp_environment_field & wpmu_wp_environment_field
Methods
add_wp_environment_field()
add the environment select field html
public
static add_wp_environment_field(mixed $options) : void
Parameters
- $options : mixed
Return values
void —register_wp_environment_field()
add the environment select field to general settings page
public
static register_wp_environment_field() : void
Return values
void —setEnvironment()
set wp_environment, custom option, robots, and add network/general settings field
public
static setEnvironment() : void
WP_DEBUG must be defined before loading wp-settings.php otherwise wp_get_environment_type() is set (static variable)
Return values
void —update_wp_environment_field()
save the environment select field to general settings page
public
static update_wp_environment_field() : void
Return values
void —wpmu_wp_environment_field()
add the environment select field to network settings page
public
static wpmu_wp_environment_field() : void