WP_MatchesMapRegex::__construct()publicWP 1.0

constructor

Method of the class: WP_MatchesMapRegex{}

No Hooks.

Return

null. Nothing.

Usage

$WP_MatchesMapRegex = new WP_MatchesMapRegex();
$WP_MatchesMapRegex->__construct( $subject, $matches );
$subject(string) (required)
subject if regex
$matches(array) (required)
data to use in map

WP_MatchesMapRegex::__construct() code WP 6.1.1

public function __construct( $subject, $matches ) {
	$this->_subject = $subject;
	$this->_matches = $matches;
	$this->output   = $this->_map();
}