WordPress at a glance
function is not described

WP_MatchesMapRegex::apply() public WP 1.0

Substitute substring matches in subject.

static helper function to ease use

{} It's a method of the class: WP_MatchesMapRegex{}

No Hooks.

Return

String.

Usage

$result = WP_MatchesMapRegex::apply( $subject, $matches );
$subject(string) (required)
subject
$matches(array) (required)
data used for substitution

Code of WP_MatchesMapRegex::apply() WP 5.7.2

<?php
public static function apply( $subject, $matches ) {
	$oSelf = new WP_MatchesMapRegex( $subject, $matches );
	return $oSelf->output;
}