WPSEO_Suggested_Plugins::create_install_suggested_plugin_message()protectedYoast 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 );
$suggested_plugin(массив) (обязательный)
The suggested plugin.

Код WPSEO_Suggested_Plugins::create_install_suggested_plugin_message() Yoast 22.8

protected function create_install_suggested_plugin_message( $suggested_plugin ) {
	/* translators: %1$s expands to an opening strong tag, %2$s expands to the dependency name, %3$s expands to a closing strong tag, %4$s expands to an opening anchor tag, %5$s expands to a closing anchor tag. */
	$message      = __( 'It looks like you aren\'t using our %1$s%2$s addon%3$s. %4$sUpgrade today%5$s to unlock more tools and SEO features to make your products stand out in search results.', 'wordpress-seo' );
	$install_link = WPSEO_Admin_Utils::get_install_link( $suggested_plugin );

	return sprintf(
		$this->create_more_information_link( $suggested_plugin['url'], $suggested_plugin['title'] ),