Yoast\WP\SEO\Services\Importing

Conflicting_Plugins_Service::get_active_conflicting_plugins()protectedYoast 1.0

Loop through the list of known conflicting plugins to check if one of the plugins is active.

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

Хуков нет.

Возвращает

Массив. The array of activated conflicting plugins.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_active_conflicting_plugins( $all_active_plugins );
$all_active_plugins(массив) (обязательный)
All plugins loaded by WordPress.

Код Conflicting_Plugins_Service::get_active_conflicting_plugins() Yoast 19.11

protected function get_active_conflicting_plugins( $all_active_plugins ) {
	$active_conflicting_plugins = [];

	foreach ( Conflicting_Plugins::all_plugins() as $plugin ) {
		if ( \in_array( $plugin, $all_active_plugins, true ) ) {
			$active_conflicting_plugins[] = $plugin;
		}
	}

	return $active_conflicting_plugins;
}