Used By
Used By | Description |
---|---|
wp-includes/class-wp-rewrite.php: WP_Rewrite::add_rule() | Adds a rewrite rule that transforms a URL structure to a set of query vars. |
Adds a rewrite rule that doesn’t correspond to index.php.
(string) (Required) Regular expression to match request against.
(string) (Required) The corresponding query vars for this rewrite rule.
File: wp-includes/class-wp-rewrite.php
public function add_external_rule( $regex, $query ) { $this->non_wp_rules[ $regex ] = $query; }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rewrite/add_external_rule