Yoast\WP\SEO\Integrations\Front_End
Indexing_Controls::set_robots_header() protected Yoast 1.0
Sets the x-robots-tag to noindex follow.
{} Это метод класса: Indexing_Controls{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->set_robots_header();
Код Indexing_Controls::set_robots_header() Indexing Controls::set robots header Yoast 15.6.2
protected function set_robots_header() {
if ( \headers_sent() === false ) {
\header( 'X-Robots-Tag: noindex, follow', true );
return true;
}
return false;
}