{eac}Doojigger Reference

eacDoojiggerEnvironment

{eac}Doojigger Environment - {eac}Doojigger for WordPress, Set WP_ENVIRONMENT_TYPE used by wp_get_environment_type()

Tags
category

WordPress Plugin

author

Kevin Burkholder KBurkholder@EarthAsylum.com

copyright

Copyright (c) 2023 EarthAsylum Consulting <www.EarthAsylum.com>

version
1.x
link
https://eacDoojigger.earthasylum.com/
wordpress-plugin

Plugin Name: {eac}Doojigger Environment Description: Environment Switcher - set WP_ENVIRONMENT_TYPE from the network or general settings page. Version: 1.0.8 Requires at least: 5.5.0 Tested up to: 6.4 Requires PHP: 7.2 Author: EarthAsylum Consulting Author URI: http://www.earthasylum.com

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
Return values
void

Search results