WP_MatchesMapRegex::callback( array $matches ): string

preg_replace_callback hook


Parameters

$matches array Required
preg_replace regexp matches

Top ↑

Return

string


Top ↑

Source

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

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

Top ↑

User Contributed Notes

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