Core Class
View Source on Trac ↗
Core Class
WP_URL_Pattern_Prefixer
class WP_URL_Pattern_Prefixer
// Constructor: function Object() { [native code] } Class for prefixing URL patterns.
Methods 4 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor.
Parameters: $contexts: array |
| prefix_path_pattern() string | Prefixes the given URL path pattern with the base path for the given context.
Parameters: $path_pattern: string, $context: string |
| get_default_contexts() array<string, | Returns the default contexts used by the class. |
| escape_pattern_string() string | Escapes a string for use in a URL pattern component.
Parameters: $str: string |
Properties
| Property / Type | Description |
|---|---|
| $contexts mixed public | No description available. |
Class Information
Since Version
6.8.0
Source File
wp-includes/class-wp-url-pattern-prefixer.php
Advertisement