Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_text

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 2 times in this file.

Line Code
167 function comment_author_IP() {
168      global $comment;
169      echo $comment->comment_author_IP;
170 }
171
172 function comment_text() {
173      global $comment;
174      $comment_text = str_replace('<trackback />', '', $comment->comment_content);
175      $comment_text = str_replace('<pingback />', '', $comment_text);
176      echo apply_filters('comment_text', $comment_text);
177 }
178
179 function comment_excerpt() {
180      global $comment;
181      $comment_text = str_replace('<trackback />', '', $comment->comment_content);
182      $comment_text = str_replace('<pingback />', '', $comment_text);
183      $comment_text = strip_tags($comment_text);
184      $blah = explode(' ', $comment_text);
185      if (count($blah) > 20) {
 
Line Code
239      } else {
240           echo htmlspecialchars(apply_filters('comment_author', $comment->comment_author));
241      }
242 }
243
244 function comment_text_rss() {
245      global $comment;
246      $comment_text = str_replace('<trackback />', '', $comment->comment_content);
247      $comment_text = str_replace('<pingback />', '', $comment_text);
248      $comment_text = apply_filters('comment_text', $comment_text);
249      $comment_text = strip_tags($comment_text);
250      $comment_text = htmlspecialchars($comment_text);
251      echo $comment_text;
252 }
253
254 function comment_link_rss() {
255      global $comment;
256      echo get_permalink($comment->comment_post_ID).'#comments';
257 }