Yoast\WP\SEO\Integrations\Front_End
Indexing_Controls::noindex_robots() public Yoast 1.0
Sends a Robots HTTP header preventing URL from being indexed in the search results while allowing search engines to follow the links in the object at the URL.
{} Это метод класса: Indexing_Controls{}
Хуков нет.
Возвращает
true/false. Boolean indicating whether the noindex header was sent.
Использование
$Indexing_Controls = new Indexing_Controls(); $Indexing_Controls->noindex_robots();
Код Indexing_Controls::noindex_robots() Indexing Controls::noindex robots Yoast 15.6.2
public function noindex_robots() {
if ( ! \is_robots() ) {
return false;
}
return $this->set_robots_header();
}