Yoast\WP\SEO\Services\Importing

Conflicting_Plugins_Service::get_active_plugins()protectedYoast 1.0

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() Yoast 22.4

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 );
}