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 |
---|---|
159 | <title><?php bloginfo_rss('name'); ?></title> |
160 | <link><?php bloginfo_rss('url') ?></link> |
161 | <description><?php bloginfo_rss("description") ?></description> |
162 | <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> |
163 | <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> |
164 | <language><?php echo get_option('rss_language'); ?></language> |
165 | <?php if ( $cats ) : foreach ( $cats as $c ) : ?> |
166 | <wp:category><wp:category_nicename><?php echo $c->category_nicename; ?></wp:category_nicename><wp:category_parent><?php echo $c->category_parent ? $cats[$c->category_parent]->cat_name : ''; ?></wp:category_parent><wp:posts_private><?php echo $c->posts_private ? '1' : '0'; ?></wp:posts_private><wp:links_private><?php echo $c->links_private ? '1' : '0'; ?></wp:links_private><?php wxr_cat_name($c); ?><?php wxr_category_description($c); ?></wp:category> |
167 | <?php endforeach; endif; ?> |
168 | <?php do_action('rss2_head'); ?> |
169 | <?php if ($posts) { foreach ($posts as $post) { start_wp(); ?> |
170 | <item> |
171 | <title><?php the_title_rss() ?></title> |
172 | <link><?php permalink_single_rss() ?></link> |
173 | <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> |
174 | <dc:creator><?php the_author() ?></dc:creator> |
175 | <?php the_category_rss() ?> |
176 |
|
177 | <guid isPermaLink="false"><?php the_guid(); ?></guid> |