WP_MatchesMapRegex::__construct
constructor
Method of the class: WP_MatchesMapRegex{}
No Hooks.
Returns
null. Nothing (null).
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() WP MatchesMapRegex:: construct code WP 7.0
public function __construct( $subject, $matches ) {
$this->_subject = $subject;
$this->_matches = $matches;
$this->output = $this->_map();
}