Uma área de pesquisa sobre o WordPress para devs e autores do tema



_make_email_clickable_cb ›

Desde2.3.2
Obsoleton/a
_make_email_clickable_cb ( $matches )
Acesso:
  • private
Parâmetros:
  • (array) $matches Single Regex Match.
    Required: Yes
Retorna:
  • (string) HTML A element with email address.
Definido em:
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().



Fonte

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