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 |
---|---|
44 |
|
45 | <?php if ( $numcomments ) : ?> |
46 | <p><strong><a href="moderation.php"><?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> »</a></strong></p> |
47 | <?php endif; ?> |
48 |
|
49 | <ul> |
50 | <?php |
51 | if ( $comments ) { |
52 | foreach ($comments as $comment) { |
53 | echo '<li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . apply_filters('the_title', get_the_title($comment->comment_post_ID)) . '</a>'); |
54 | edit_comment_link(__("Edit"), ' <small>(', ')</small>'); |
55 | echo '</li>'; |
56 | } |
57 | } |
58 | ?> |
59 | </ul> |
60 | </div> |
61 | <?php endif; ?> |
62 |
|