Substitute substring matches in subject.
static helper function to ease use
$subjectstringrequired
$matchesarrayrequired
public static function apply( $subject, $matches ) {
$result = new WP_MatchesMapRegex( $subject, $matches );
return $result->output;
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_matchesmapregex/apply