WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
82 | * @uses apply_filters() Calls 'comment_email' hook for the display of the comment author's email |
83 | * @global object $comment The current Comment row object |
84 | * |
85 | * @param string $linktext The text to display instead of the comment author's email address |
86 | * @param string $before The text or HTML to display before the email link. |
87 | * @param string $after The text or HTML to display after the email link. |
88 | */ |
89 | function comment_author_email_link($linktext='', $before='', $after='') { |
90 | global $comment; |
91 | $email = apply_filters('comment_email', $comment->comment_author_email); |
92 | if ((!empty($email)) && ($email != '@')) { |
93 | $display = ($linktext != '') ? $linktext : $email; |
94 | echo $before; |
95 | echo "<a href='mailto:$email'>$display</a>"; |
96 | echo $after; |
97 | } |
98 | } |
99 |
|
100 | /** |