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

WPSEO_Admin_Init::search_engines_discouraged_notice() public Yoast 1.0

Displays an admin notice when WordPress is set to discourage search engines from indexing the site.

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

Хуков нет.


null. Ничего.


$WPSEO_Admin_Init = new WPSEO_Admin_Init();

Код WPSEO_Admin_Init::search_engines_discouraged_notice() Yoast 17.3

public function search_engines_discouraged_notice() {
	if ( ! $this->should_display_search_engines_discouraged_notice() ) {

		'<div id="robotsmessage" class="notice notice-error"><p><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></p></div>',
		esc_html__( 'Huge SEO Issue: You\'re blocking access to robots.', 'wordpress-seo' ),
			/* 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' ) ) . '">',
		esc_js( wp_create_nonce( 'wpseo-ignore' ) ),
		esc_html__( 'I don\'t want this site to show in the search results.', 'wordpress-seo' )