WPSEO_Frontend::get_title()
Used for static home and posts pages as well as singular titles.
Метод класса: WPSEO_Frontend{}
Хуков нет.
Возвращает
Строку
. The content title.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_title( $object );
- $object(объект|null)
- If filled, object to get the title for.
По умолчанию: null
Код WPSEO_Frontend::get_title() WPSEO Frontend::get title Yoast 22.4
private function get_title( $object = null ) { _deprecated_function( __METHOD__, 'Yoast SEO 14.0' ); $presentation = $this->get_current_page_presentation(); $title = $presentation->title; return $this->replace_vars->replace( $title, $presentation->source ); }