WP_Rewrite::page_rewrite_rules()publicWP 1.5.0

Retrieves all of the rewrite rules for pages.

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

Хуков нет.


Строку[]. Page rewrite rules.


global $wp_rewrite;

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

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

Код WP_Rewrite::page_rewrite_rules() WP 6.5.3

public function page_rewrite_rules() {
	// The extra .? at the beginning prevents clashes with other regular expressions in the rules array.
	$this->add_rewrite_tag( '%pagename%', '(.?.+?)', 'pagename=' );

	return $this->generate_rewrite_rules( $this->get_page_permastruct(), EP_PAGES, true, true, false, false );