On this page
WP_MatchesMapRegex::__construct( string $subject, array $matches )
constructor
Parameters
$subjectstring Required-
subject if regex
$matchesarray Required-
data to use in map
Source
File: wp-includes/class-wp-matchesmapregex.php. View all references
public function __construct( $subject, $matches ) {
$this->_subject = $subject;
$this->_matches = $matches;
$this->output = $this->_map();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_MatchesMapRegex::_map() wp-includes/class-wp-matchesmapregex.php | do the actual mapping |
Used By
| Used By | Description |
|---|---|
| WP_MatchesMapRegex::apply() wp-includes/class-wp-matchesmapregex.php | Substitute substring matches in subject. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_matchesmapregex/__construct