Yoast\WP\SEO\Actions\Indexables
Indexable_Head_Action::for_post_type_archive()
Retrieves the head for a post type archive.
Метод класса: Indexable_Head_Action{}
Хуков нет.
Возвращает
Объект
. Object with head and status properties.
Использование
$Indexable_Head_Action = new Indexable_Head_Action(); $Indexable_Head_Action->for_post_type_archive( $type );
- $type(int) (обязательный)
- The id.
Код Indexable_Head_Action::for_post_type_archive() Indexable Head Action::for post type archive Yoast 24.3
public function for_post_type_archive( $type ) { return $this->with_404_fallback( $this->with_cache( 'post_type_archive', $type ) ); }