WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

Yoast_Plugin_Conflict::get_conflicting_plugins_as_string() public Yoast 1.0

Getting all the conflicting plugins and return them as a string.

This method will loop through all conflicting plugins to get the details of each plugin. The plugin name will be taken from the details to parse a comma separated string, which can be use for by example a notice

{} Это метод класса: Yoast_Plugin_Conflict{}

Хуков нет.

Возвращает

Строку.

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

$Yoast_Plugin_Conflict = new Yoast_Plugin_Conflict();
$Yoast_Plugin_Conflict->get_conflicting_plugins_as_string( $plugin_section );
$plugin_section(строка) (обязательный)
Plugin conflict type (such as Open Graph or sitemap).

Код Yoast_Plugin_Conflict::get_conflicting_plugins_as_string() Yoast 15.1.1

<?php
public function get_conflicting_plugins_as_string( $plugin_section ) {
	if ( ! function_exists( 'get_plugin_data' ) ) {
		require_once ABSPATH . 'wp-admin/includes/plugin.php';
	}

	// Getting the active plugins by given section.
	$plugins = $this->active_plugins[ $plugin_section ];

	$plugin_names = [];
	foreach ( $plugins as $plugin ) {
		$name = WPSEO_Utils::get_plugin_name( $plugin );
		if ( ! empty( $name ) ) {
			$plugin_names[] = '<em>' . $name . '</em>';
		}
	}
	unset( $plugins, $plugin );

	if ( ! empty( $plugin_names ) ) {
		return implode( ' &amp; ', $plugin_names );
	}
}