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