Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_make_email_clickable_cb( array $matches )
Callback to convert email address match to HTML A element.
Description Description
This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable().
Parameters Parameters
- $matches
-
(array) (Required) Single Regex Match.
Return Return
(string) HTML A element with email address.
Source Source
File: wp-includes/formatting.php
function _make_email_clickable_cb( $matches ) { $email = $matches[2] . '@' . $matches[3]; return $matches[1] . "<a href=\"mailto:$email\">$email</a>"; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.3.2 | Introduced. |