Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Sections
Intro::render
Returns the content of the intro section.
Метод класса: Intro{}
Хуков нет.
Возвращает
string.
Использование
$Intro = new Intro(); $Intro->render(): string;
Код Intro::render() Intro::render Yoast 28.9
public function render(): string {
if ( \count( $this->intro_links ) === 0 ) {
return $this->intro_content;
}
$rendered_links = \array_map(
static function ( $link ) {
return $link->render();
},
$this->intro_links,
);
$this->intro_content = \sprintf(
$this->intro_content,
...$rendered_links,
);
return $this->intro_content;
}