rewrite_rules_array

rewrite_rules_array

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('rewrite_rules_array') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1476
    1472
    1473
    1474
    1475
    1476
    1477
    1478
    1479
    1480
    1481
    1482
         * @since 1.5.0
         *
         * @param string[] $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: