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 |
---|---|
75 | // Return comment threading information (http://www.ietf.org/rfc/rfc4685.txt) |
76 | if ( $comment->comment_parent == 0 ) : // This comment is top level ?> |
77 | <thr:in-reply-to ref="<?php the_guid() ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" /> |
78 | <?php else : // This comment is in reply to another comment |
79 | $parent_comment = get_comment($comment->comment_parent); |
80 | // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, its more important that they both use the same system |
81 | ?> |
82 | <thr:in-reply-to ref="<?php comment_guid($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" /> |
83 | <?php endif; |
84 | do_action('comment_atom_entry', $comment->comment_ID, $comment_post->ID); |
85 | ?> |
86 | </entry> |
87 | <?php endwhile; endif; ?> |
88 | </feed> |
89 |
|