Yoast\WP\SEO\Generators

Breadcrumbs_Generator::get_post_type_archive_crumb()privateYoast 1.0

Returns the modified post type crumb.

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

Хуков нет.

Возвращает

Строку[]. 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() Yoast 22.4

private function get_post_type_archive_crumb( $crumb, $ancestor ) {
	$crumb['ptarchive'] = $ancestor->object_sub_type;

	return $crumb;
}