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 |
---|---|
1070 | $blog_id = (int) $GLOBALS['blog_id']; |
1071 | log_app('function',"query_posts(# " . print_r($wp_query, true) . "#)"); |
1072 |
|
1073 | log_app('function',"total_count(# $wp_query->max_num_pages #)"); |
1074 | $last_page = $wp_query->max_num_pages; |
1075 | $next_page = (($page + 1) > $last_page) ? NULL : $page + 1; |
1076 | $prev_page = ($page - 1) < 1 ? NULL : $page - 1; |
1077 | $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? NULL : (int) $last_page; |
1078 | $self_page = $page > 1 ? $page : NULL; |
1079 | ?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>" <?php do_action('app_ns'); ?> > |
1080 | <id><?php $this->the_entries_url() ?></id> |
1081 | <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> |
1082 | <title type="text"><?php bloginfo_rss('name') ?></title> |
1083 | <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> |
1084 | <link rel="first" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url() ?>" /> |
1085 | <?php if (isset($prev_page)): ?> |
1086 | <link rel="previous" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url($prev_page) ?>" /> |
1087 | <?php endif; ?> |
1088 | <?php if (isset($next_page)): ?> |