Yoast\WP\SEO\Plans\Application

Duplicate_Post_Manager::is_activated │ protected │ Yoast 1.0

Checks if the plugin is installed and activated in WordPress.

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

Хуков нет.

Возвращает

bool. True when installed and activated.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_activated();

Код Duplicate_Post_Manager::is_activated() Yoast 28.9

protected function is_activated() {
	return \is_plugin_active( self::PLUGIN_FILE );
}