Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.4

do_action('rewrite_rules_array') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1446
    		 * @since 1.5.0
    		 * @param string[] $this->rules The compiled array of rewrite rules, keyed by their regex pattern.
    		$this->rules = apply_filters( 'rewrite_rules_array', $this->rules );
    		return $this->rules;
    	 * Retrieves the rewrite rules.

See this hook used in plugins: