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

Title::renderpublicYoast 1.0

Renders the title section.

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

Хуков нет.

Возвращает

Строку.

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

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

Код Title::render() Yoast 27.6

public function render(): string {
	if ( $this->site_tagline === '' ) {
		return $this->site_title;
	}

	if ( $this->site_title === '' ) {
		return $this->site_tagline;
	}

	return "$this->site_title: $this->site_tagline";
}