WP_Rewrite::add_external_rule

Advertisement

Summery Summery

Adds a rewrite rule that doesn’t correspond to index.php.

Syntax Syntax

WP_Rewrite::add_external_rule( string $regex, string $query )

Parameters Parameters

$regex

(Required) Regular expression to match request against.

$query

(Required) The corresponding query vars for this rewrite rule.

Source Source

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

	 * @param string $query The corresponding query vars for this rewrite rule.
	 */
	public function add_external_rule( $regex, $query ) {

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply