Property | Type | Description | |
---|---|---|---|
$sorted_rules_cache | cache sorted rules |
Method | Description | |
---|---|---|
add_system_rules ( array $rules ) : array | Add pre-defined rules to an array of rules only if rules with their names don't already exist | |
by_name ( string $name ) : array | Get a RewriteRule by its name | |
get_active ( ) : array | Return the active rewrite rules, both in the database and applied by plugins | |
sort_rules ( array $rewrite_rules ) : array | Helper function for sorting rewrite rules by priority. |
public static add_system_rules ( array $rules ) : array | ||
$rules | array | An array of RewriteRule objects |
return | array | An array of rules with the system rules potentially added |
public static get_active ( ) : array | ||
return | array | Array of RewriteRule objects for active rewrite rules |
public static sort_rules ( array $rewrite_rules ) : array | ||
$rewrite_rules | array | An array of RewriteRules |
return | array | Sorted rewrite rules by priority |