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

Substitute substring matches in subject.

Description Description

static helper function to ease use

Top ↑

Parameters Parameters


(string) (Required) subject


(array) (Required) data used for substitution

Top ↑

Return Return


Top ↑

Source Source

File: wp-includes/class-wp-matchesmapregex.php

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

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

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