WP_Rewrite::add_external_rule

SummerySummery

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

Syntax

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

ParametersParameters

$regex

(string) (Required) Regular expression to match request against.

$query

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

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top