WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WP_Rewrite::init() public WP 1.5.0

Sets up the object's properties.

The 'use_verbose_page_rules' object property will be set to true if the permalink structure begins with one of the following: '%postname%', '%category%', '%tag%', or '%author%'.

Это метод класса: WP_Rewrite{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WP_Rewrite = new WP_Rewrite();
$WP_Rewrite->init();

Список изменений

С версии 1.5.0 Введена.

Код WP_Rewrite::init() WP 5.5.1

wp-includes/class-wp-rewrite.php
<?php
public function init() {
	$this->extra_rules         = array();
	$this->non_wp_rules        = array();
	$this->endpoints           = array();
	$this->permalink_structure = get_option( 'permalink_structure' );
	$this->front               = substr( $this->permalink_structure, 0, strpos( $this->permalink_structure, '%' ) );
	$this->root                = '';

	if ( $this->using_index_permalinks() ) {
		$this->root = $this->index . '/';
	}

	unset( $this->author_structure );
	unset( $this->date_structure );
	unset( $this->page_structure );
	unset( $this->search_structure );
	unset( $this->feed_structure );
	unset( $this->comment_feed_structure );

	$this->use_trailing_slashes = ( '/' === substr( $this->permalink_structure, -1, 1 ) );

	// Enable generic rules for pages if permalink structure doesn't begin with a wildcard.
	if ( preg_match( '/^[^%]*%(?:postname|category|tag|author)%/', $this->permalink_structure ) ) {
		$this->use_verbose_page_rules = true;
	} else {
		$this->use_verbose_page_rules = false;
	}
}