Yoast\WP\SEO\Helpers
Environment_Helper::is_production_mode() public Yoast 1.0
Determines if the site is running on production.
{} Это метод класса: Environment_Helper{}
Хуков нет.
Возвращает
true/false. True if WordPress is currently running on production, false for all other environments.
Использование
$Environment_Helper = new Environment_Helper(); $Environment_Helper->is_production_mode();
Код Environment_Helper::is_production_mode() Environment Helper::is production mode Yoast 15.6.2
public function is_production_mode() {
return $this->get_wp_environment() === 'production';
}