WP_MatchesMapRegex::callback

Advertisement

Summery Summery

preg_replace_callback hook

Syntax Syntax

WP_MatchesMapRegex::callback( array $matches )

Parameters Parameters

$matches

(array) (Required) preg_replace regexp matches

Return Return

(string)

Source Source

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

	public function callback( $matches ) {
		$index = intval( substr( $matches[0], 9, -1 ) );
		return ( isset( $this->_matches[ $index ] ) ? urlencode( $this->_matches[ $index ] ) : '' );
	}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?