WPSEO_Plugin_Availability::plugin_exists()
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() WPSEO Plugin Availability::plugin exists Yoast 21.5
protected function plugin_exists( $plugin ) { return isset( $this->plugins[ $plugin ] ); }