Yoast\WP\SEO\Presenters\Admin

Search_Engines_Discouraged_Presenter::get_message()protectedYoast 1.0

Returns the message to show.

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

Хуков нет.

Возвращает

Строку. The message.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_message();

Код Search_Engines_Discouraged_Presenter::get_message() Yoast 22.4

protected function get_message() {
	return \sprintf(
		'<strong>%1$s</strong> %2$s <button type="button" id="robotsmessage-dismiss-button" class="button-link hide-if-no-js" data-nonce="%3$s">%4$s</button>',
		\esc_html__( 'Huge SEO Issue: You\'re blocking access to robots.', 'wordpress-seo' ),
		\sprintf(
		/* translators: 1: Link start tag to the WordPress Reading Settings page, 2: Link closing tag. */
			\esc_html__( 'If you want search engines to show this site in their results, you must %1$sgo to your Reading Settings%2$s and uncheck the box for Search Engine Visibility.', 'wordpress-seo' ),
			'<a href="' . \esc_url( \admin_url( 'options-reading.php' ) ) . '">',
			'</a>'
		),
		\esc_js( \wp_create_nonce( 'wpseo-ignore' ) ),
		\esc_html__( 'I don\'t want this site to show in the search results.', 'wordpress-seo' )
	);
}