Yoast\WP\SEO\Builders
Indexable_Builder::build_for_system_page()
Creates an indexable for a system page.
Метод класса: Indexable_Builder{}
Хуков нет.
Возвращает
Indexable
. The search result indexable.
Использование
$Indexable_Builder = new Indexable_Builder(); $Indexable_Builder->build_for_system_page( $page_type, $indexable );
- $page_type(строка) (обязательный)
- The type of system page.
- $indexable(Indexable|true|false)
- An existing indexable to overwrite.
По умолчанию: false
Код Indexable_Builder::build_for_system_page() Indexable Builder::build for system page Yoast 23.4
public function build_for_system_page( $page_type, $indexable = false ) { $defaults = [ 'object_type' => 'system-page', 'object_sub_type' => $page_type, ]; return $this->build( $indexable, $defaults ); }