Yoast_Feature_Toggles::sitemaps_toggle_after()protectedYoast 1.0

Returns html for a warning that core sitemaps are enabled when yoast seo sitemaps are disabled.

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

Хуков нет.


Строку. HTML string for the warning.


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

Код Yoast_Feature_Toggles::sitemaps_toggle_after() Yoast 22.1

protected function sitemaps_toggle_after() {
	$out   = '<div id="yoast-seo-sitemaps-disabled-warning" style="display:none;">';
	$alert = new Alert_Presenter(
		/* translators: %1$s: expands to an opening anchor tag, %2$s: expands to a closing anchor tag */
		sprintf( esc_html__( 'Disabling Yoast SEO\'s XML sitemaps will not disable WordPress\' core sitemaps. In some cases, this %1$s may result in SEO errors on your site%2$s. These may be reported in Google Search Console and other tools.', 'wordpress-seo' ), '<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/44z' ) . '">', '</a>' ),
	$out .= $alert->present();
	$out .= '</div>';

	return $out;