Adds a rewrite rule that doesn’t correspond to index.php.
$regexstringrequired
$querystringrequired
public function add_external_rule( $regex, $query ) {
$this->non_wp_rules[ $regex ] = $query;
}
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rewrite/add_external_rule