Yoast\WP\SEO\Surfaces
Meta_Surface::for_term()
Returns the meta tags context for a term.
Метод класса: Meta_Surface{}
Хуков нет.
Возвращает
Meta|false
. The meta values. False if none could be found.
Использование
$Meta_Surface = new Meta_Surface(); $Meta_Surface->for_term( $id );
- $id(int) (обязательный)
- The ID of the term.
Код Meta_Surface::for_term() Meta Surface::for term Yoast 24.3
public function for_term( $id ) { $indexable = $this->repository->find_by_id_and_type( $id, 'term' ); if ( ! $indexable ) { return false; } return $this->build_meta( $this->context_memoizer->get( $indexable, 'Term_Archive' ) ); }