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

Title::render │ public │ Yoast 1.0

Renders the title section.

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

Хуков нет.

Возвращает

string.

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

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

Код Title::render() Yoast 28.7

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";
}