WPSEO_Admin_Bar_Menu::get_current_indexable()protectedYoast 1.0

Returns the indexable for the current WordPress page, with cache applied.

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

Хуков нет.

Возвращает

true|false|Indexable. The indexable, false if none could be found.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_current_indexable();

Код WPSEO_Admin_Bar_Menu::get_current_indexable() Yoast 22.4

protected function get_current_indexable() {
	if ( is_null( $this->current_indexable ) ) {
		$this->current_indexable = $this->indexable_repository->for_current_page();
	}

	return $this->current_indexable;
}