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