wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_make_email_clickable_cb › WordPress Function

Da2.3.2
Deprecaton/a
_make_email_clickable_cb ( $matches )
Accedi:
  • private
Parametri:
  • (array) $matches Single Regex Match.
    Richiesto:
Ritorna:
  • (string) HTML A element with email address.
Definito a:
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().


Sorgenti

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

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