Yoast\WP\SEO\Builders

Indexable_Builder::build_for_date_archive()publicYoast 1.0

Creates an indexable for the date archive.

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

Хуков нет.

Возвращает

Indexable. The date archive indexable.

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

$Indexable_Builder = new Indexable_Builder();
$Indexable_Builder->build_for_date_archive( $indexable );
$indexable(Indexable|true|false)
An existing indexable to overwrite.
По умолчанию: false

Код Indexable_Builder::build_for_date_archive() Yoast 19.11

public function build_for_date_archive( $indexable = false ) {
	return $this->build( $indexable, [ 'object_type' => 'date-archive' ] );
}