WPSEO_Breadcrumbs::get_links()publicYoast 1.0

Returns the collected links for the breadcrumbs.

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

Хуков нет.

Возвращает

Массив. The collected links.

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

$WPSEO_Breadcrumbs = new WPSEO_Breadcrumbs();
$WPSEO_Breadcrumbs->get_links();

Код WPSEO_Breadcrumbs::get_links() Yoast 22.4

public function get_links() {
	$context = $this->context_memoizer->for_current_page();

	return $context->presentation->breadcrumbs;
}