Yoast\WP\SEO\Helpers

Environment_Helper::get_wp_environment()publicYoast 1.0

Determines on which environment WordPress is running.

Метод класса: Environment_Helper{}

Хуков нет.

Возвращает

Строку. The current WordPress environment.

Использование

$Environment_Helper = new Environment_Helper();
$Environment_Helper->get_wp_environment();

Код Environment_Helper::get_wp_environment() Yoast 20.0

public function get_wp_environment() {
	return \wp_get_environment_type();
}