Core Class
View Source on Trac ↗
Core Class
WP_MatchesMapRegex
class WP_MatchesMapRegex
// Constructor: function Object() { [native code] } Helper class to remove the need to use eval to replace $matches[] in query strings.
Methods 4 methods
| Method / Return | Description |
|---|---|
| __construct() void | constructor
Parameters: $subject: mixed, $matches: mixed |
| apply() string | Substitute substring matches in subject.
Parameters: $subject: mixed, $matches: mixed |
| _map() string | do the actual mapping |
| callback() string | preg_replace_callback hook
Parameters: $matches: mixed |
Properties
| Property / Type | Description |
|---|---|
| $_matches mixed public | No description available. |
| $output mixed public | No description available. |
| $_subject mixed public | No description available. |
| $_pattern mixed public | No description available. |
Class Information
Since Version
2.9.0
Source File
wp-includes/class-wp-matchesmapregex.php
Advertisement