WPSEO_Addon_Manager::is_plugin_active()
Checks if the given plugin file belongs to an active plugin.
Метод класса: WPSEO_Addon_Manager{}
Хуков нет.
Возвращает
true|false
. True when plugin is active.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_plugin_active( $plugin_file );
- $plugin_file(строка) (обязательный)
- The file path to the plugin.
Код WPSEO_Addon_Manager::is_plugin_active() WPSEO Addon Manager::is plugin active Yoast 22.4
protected function is_plugin_active( $plugin_file ) { return is_plugin_active( $plugin_file ); }