WPSEO_Frontend::get_current_page_presentation
Returns the current page presentation.
Метод класса: WPSEO_Frontend{}
Хуки из метода
Возвращает
Indexable_Presentation. The current page presentation.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_current_page_presentation();
Код WPSEO_Frontend::get_current_page_presentation() WPSEO Frontend::get current page presentation Yoast 26.5
private function get_current_page_presentation() {
$context = $this->context_memoizer->for_current_page();
/** This filter is documented in src/integrations/front-end-integration.php */
return apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
}