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

Substitute substring matches in subject.


Description

static helper function to ease use


Top ↑

Parameters

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

Top ↑

Return

string


Top ↑

Source

File: wp-includes/class-wp-matchesmapregex.php. View all references

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


Top ↑

User Contributed Notes

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