Yoast\WP\SEO\Actions\Indexables
Indexable_Head_Action::with_404_fallback()
Returns the head with 404 fallback
Метод класса: Indexable_Head_Action{}
Хуков нет.
Возвращает
Объект
. The head response.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->with_404_fallback( $meta );
- $meta(Meta|false) (обязательный)
- The meta object.
Код Indexable_Head_Action::with_404_fallback() Indexable Head Action::with 404 fallback Yoast 22.4
protected function with_404_fallback( $meta ) { if ( $meta === false ) { return $this->for_404(); } else { return $this->for_200( $meta->get_head() ); } }