Yoast\WP\SEO\Actions\Indexables
Indexable_Head_Action::for_posts_page() public Yoast 1.0
Retrieves the head for the posts page.
{} Это метод класса: Indexable_Head_Action{}
Хуков нет.
Возвращает
Объект
. Object with head and status properties.
Использование
$Indexable_Head_Action = new Indexable_Head_Action(); $Indexable_Head_Action->for_posts_page();
Код Indexable_Head_Action::for_posts_page() Indexable Head Action::for posts page Yoast 16.1.1
public function for_posts_page() {
$meta = $this->meta_surface->for_posts_page();
if ( $meta === false ) {
return $this->for_404();
}
return (object) [
'head' => $meta->get_head(),
'status' => 200,
];
}