Yoast\WP\SEO\Presenters
Robots_Txt_Presenter::present()
Generate content to be placed in a robots.txt file.
Метод класса: Robots_Txt_Presenter{}
Хуков нет.
Возвращает
Строку
. Content to be placed in a robots.txt file.
Использование
$Robots_Txt_Presenter = new Robots_Txt_Presenter(); $Robots_Txt_Presenter->present();
Код Robots_Txt_Presenter::present() Robots Txt Presenter::present Yoast 24.0
public function present() { $robots_txt_content = self::YOAST_OUTPUT_BEFORE_COMMENT; $robots_txt_content = $this->handle_user_agents( $robots_txt_content ); $robots_txt_content = $this->handle_site_maps( $robots_txt_content ); return $robots_txt_content . self::YOAST_OUTPUT_AFTER_COMMENT; }