WPSEO_Plugin_Availability::plugin_exists()protectedYoast 1.0

Checks whether or not a plugin is known within the Yoast SEO collection.

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

Хуков нет.

Возвращает

true|false. Whether or not the plugin is exists.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->plugin_exists( $plugin );
$plugin(строка) (обязательный)
The plugin to search for.

Код WPSEO_Plugin_Availability::plugin_exists() Yoast 22.4

protected function plugin_exists( $plugin ) {
	return isset( $this->plugins[ $plugin ] );
}