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

WPSEO_Suggested_Plugins::create_install_suggested_plugin_message() protected Yoast 1.0

Creates a message to suggest the installation of a particular plugin.

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

Хуков нет.

Возвращает

Строку. The install suggested plugin message.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->create_install_suggested_plugin_message( $suggested_plugin, $third_party_plugin );
$suggested_plugin(массив) (обязательный)
The suggested plugin.
$third_party_plugin(массив) (обязательный)
The third party plugin that we have a suggested plugin for.

Код WPSEO_Suggested_Plugins::create_install_suggested_plugin_message() Yoast 15.1.1

<?php
protected function create_install_suggested_plugin_message( $suggested_plugin, $third_party_plugin ) {
	/* translators: %1$s expands to Yoast SEO, %2$s expands to the dependency name, %3$s expands to the install link, %4$s expands to the more info link. */
	$message      = __( '%1$s and %2$s can work together a lot better by adding a helper plugin. Please install %3$s to make your life better. %4$s.', 'wordpress-seo' );
	$install_link = WPSEO_Admin_Utils::get_install_link( $suggested_plugin );

	return sprintf(
		$message,
		'Yoast SEO',
		$third_party_plugin,
		$install_link,
		$this->create_more_information_link( $suggested_plugin['url'], $suggested_plugin['title'] )
	);
}