Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Sections

Intro::render │ public │ Yoast 1.0

Returns the content of the intro section.

Метод класса: Intro{}

Хуков нет.

Возвращает

string.

Использование

$Intro = new Intro();
$Intro->render(): string;

Код 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;
}