WordPress at a glance
function is not described

_make_email_clickable_cb() WP 2.3.2

Callback to convert email address match to HTML A element.

This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable().

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


String. HTML A element with email address.


_make_email_clickable_cb( $matches );
$matches(array) (required)
Single Regex Match.


Since 2.3.2 Introduced.

Code of _make_email_clickable_cb() WP 5.7.2

function _make_email_clickable_cb( $matches ) {
	$email = $matches[2] . '@' . $matches[3];
	return $matches[1] . "<a href=\"mailto:$email\">$email</a>";