WP_MatchesMapReguex::apply( string   $subject , array   $matches ): string

Substitute substring matches in subject.

Description

static helper function to ease use

Parameters

$subject string required
subject
$matches array required
data used for substitution

Return

string

Source

public static function apply( $subject, $matches ) {
	$result = new WP_MatchesMapReguex( $subject, $matches );
	return $result->output;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.