Yoast\WP\SEO\Generators\Schema
Breadcrumb::format_last_breadcrumb
Creates the last breadcrumb in the breadcrumb list, omitting the URL per Google's spec.
Метод класса: Breadcrumb{}
Хуков нет.
Возвращает
Массив. The last of the breadcrumbs.
Использование
// private - только в коде основоного (родительского) класса $result = $this->format_last_breadcrumb( $breadcrumb );
- $breadcrumb(массив) (обязательный)
- The position in the list.
Код Breadcrumb::format_last_breadcrumb() Breadcrumb::format last breadcrumb Yoast 26.9
private function format_last_breadcrumb( $breadcrumb ) {
unset( $breadcrumb['url'] );
return $breadcrumb;
}