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