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 |
---|---|
73 | // Return comment threading information (http://www.ietf.org/rfc/rfc4685.txt) |
74 | if ( $comment->comment_parent == 0 ) : // This comment is top level ?> |
75 | <thr:in-reply-to ref="<?php the_guid(); ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" /> |
76 | <?php else : // This comment is in reply to another comment |
77 | $parent_comment = get_comment($comment->comment_parent); |
78 | // 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 |
79 | ?> |
80 | <thr:in-reply-to ref="<?php comment_guid($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" /> |
81 | <?php endif; |
82 | do_action('comment_atom_entry', $comment->comment_ID, $comment_post->ID); |
83 | ?> |
84 | </entry> |
85 | <?php endwhile; endif; ?> |
86 | </feed> |
87 |
|