Yoast\WP\SEO\Actions\Indexables

Indexable_Head_Action::for_post_type_archive()publicYoast 1.0

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() Yoast 19.11

public function for_post_type_archive( $type ) {
	return $this->with_404_fallback( $this->with_cache( 'post_type_archive', $type ) );
}