Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WP_MatchesMapRegex::_map() WordPress Method
The WP_MatchesMapRegex::_map() method is used to map an array of matches from a regular expression to a new array. This is useful for extracting information from a regular expression match.
WP_MatchesMapRegex::_map() #
do the actual mapping
Return
(string)
Source
File: wp-includes/class-wp-matchesmapregex.php
private function _map() { $callback = array( $this, 'callback' ); return preg_replace_callback( $this->_pattern, $callback, $this->_subject ); }
Expand full source codeCollapse full source codeView on TracView on GitHub