WordPress at a glance
функция не описана

WP_Rewrite::add_external_rule() public WP 2.1.0

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

It's a method of the class: WP_Rewrite{}

Хуков нет.


Null. Ничего.


$WP_Rewrite = new WP_Rewrite();
$WP_Rewrite->add_external_rule( $regex, $query );
$regex(string) (required)
Regular expression to match request against.
$query(string) (required)
The corresponding query vars for this rewrite rule.


Since 2.1.0 Introduced.

Код WP_Rewrite::add_external_rule() WP 5.5.1

public function add_external_rule( $regex, $query ) {
	$this->non_wp_rules[ $regex ] = $query;