WP_Rewrite::page_rewrite_rules

Advertisement

Summery Summery

Retrieves all of the rewrite rules for pages.

Syntax Syntax

WP_Rewrite::page_rewrite_rules()

Return Return

(string[]) Page rewrite rules.

Source Source

File: wp-includes/class-wp-rewrite.php

	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 );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.