Yoast\WP\SEO\Presentations
Indexable_Search_Result_Page_Presentation::generate_robots()
Generates the robots value.
Метод класса: Indexable_Search_Result_Page_Presentation{}
Хуков нет.
Возвращает
Массив
. The robots value.
Использование
$Indexable_Search_Result_Page_Presentation = new Indexable_Search_Result_Page_Presentation(); $Indexable_Search_Result_Page_Presentation->generate_robots();
Код Indexable_Search_Result_Page_Presentation::generate_robots() Indexable Search Result Page Presentation::generate robots Yoast 24.4
public function generate_robots() { $robots = $this->get_base_robots(); $robots['index'] = 'noindex'; return $this->filter_robots( $robots ); }