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 |
---|---|
8 | header('Content-type: application/atom+xml; charset=' . get_option('blog_charset'), true); |
9 | $more = 1; |
10 |
|
11 | ?> |
12 | <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> |
13 | <feed version="0.3" |
14 | xmlns="http://purl.org/atom/ns#" |
15 | xmlns:dc="http://purl.org/dc/elements/1.1/" |
16 | xml:lang="<?php echo get_option('rss_language'); ?>" |
17 | <?php do_action('atom_ns'); ?> |
18 | > |
19 | <title><?php bloginfo_rss('name') ?></title> |
20 | <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> |
21 | <tagline><?php bloginfo_rss("description") ?></tagline> |
22 | <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></modified> |
23 | <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright> |
24 | <generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator> |
25 | <?php do_action('atom_head'); ?> |
26 | <?php while (have_posts()) : the_post(); ?> |