Yoast\WP\SEO\Generators
Breadcrumbs_Generator::get_post_type_archive_crumb
Returns the modified post type crumb.
Метод класса: Breadcrumbs_Generator{}
Хуков нет.
Возвращает
string[]. The crumb.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_post_type_archive_crumb( $crumb, $ancestor );
- $crumb(string[]) (обязательный)
- The crumb.
- $ancestor(Indexable) (обязательный)
- The indexable.
Код Breadcrumbs_Generator::get_post_type_archive_crumb() Breadcrumbs Generator::get post type archive crumb Yoast 28.4
private function get_post_type_archive_crumb( $crumb, $ancestor ) {
$crumb['ptarchive'] = $ancestor->object_sub_type;
return $crumb;
}