Yoast\WP\SEO\Surfaces

Meta_Surface::for_404()publicYoast 1.0

Returns the meta tags context for the search result page.

Метод класса: Meta_Surface{}

Хуков нет.

Возвращает

Meta|false. The meta values. False if none could be found.

Использование

$Meta_Surface = new Meta_Surface();
$Meta_Surface->for_404();

Код Meta_Surface::for_404() Yoast 19.11

public function for_404() {
	$indexable = $this->repository->find_for_system_page( '404' );

	if ( ! $indexable ) {
		return false;
	}


	return $this->build_meta( $this->context_memoizer->get( $indexable, 'Error_Page' ) );
}