wpseek.com
A WordPress-centric search engine for devs and theme authors



_make_email_clickable_cb › WordPress Function

Since2.3.2
Deprecatedn/a
_make_email_clickable_cb ( $matches )
Access:
  • private
Parameters:
  • (array) $matches Single Regex Match.
    Required: Yes
Returns:
  • (string) HTML A element with email address.
Defined at:
Codex:

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().


Source

function _make_email_clickable_cb( $matches ) {
	$email = $matches[2] . '@' . $matches[3];

	return $matches[1] . "<a href=\"mailto:{$email}\">{$email}</a>";
}