Yoast\WP\SEO\Services\Importing
Conflicting_Plugins_Service::get_active_plugins
Get a list of all plugins active in the current WordPress instance.
Метод класса: Conflicting_Plugins_Service{}
Хуков нет.
Возвращает
Массив|false. The names of all active plugins.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_active_plugins();
Код Conflicting_Plugins_Service::get_active_plugins() Conflicting Plugins Service::get active plugins Yoast 26.7
protected function get_active_plugins() {
// Request a list of active plugins from WordPress.
$all_active_plugins = \get_option( 'active_plugins' );
return $this->ignore_deactivating_plugin( $all_active_plugins );
}