get_comment_author_email_link [ WordPress Function ]
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Return the html email link to the author of the current comment.
Care should be taken to protect the email address and assure that email harvesters do not capture your commentors' email address. Most assume that their email address will not appear in raw form on the blog. Doing so will enable anyone, including those that people don't want to get the email address and use it for their own means good and bad.
Source
<?php
function get_comment_author_email_link($linktext='', $before='', $after='') {
global $comment;
$email = apply_filters('comment_email', $comment->comment_author_email);
if ((!empty($email)) && ($email != '@')) {
$display = ($linktext != '') ? $linktext : $email;
$return = $before;
$return .= "<a href='mailto:$email'>$display</a>";
$return .= $after;
return $return;
} else {
return '';
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_comment_author_email_link() WordPress function reference ...
Return the html email link to the author of the current comment.
queryposts.com - wp-includes/comment-template.php source
101 */ 102 function comment_author_email_link($linktext='', $before='', $after='') { 103 if ( $link = get_comment_author_email_link( $linktext, $before, $after ) ...
phpxref.ftwr.co.uk - Function Reference/comment author email link « WordPress Codex
... is not recommended, as it provides spam collection tools the opportunity to cull them from your site. Use get_comment_author_email_link to retrieve the value.
codex.wordpress.org - Wordpress Php auto email to comment author - Stack Overflow
<?php $subject = 'My subject'; $message = "The Message I'd like to send back to the commenter"; $mailTo = get_comment_author_email_link ...
stackoverflow.com