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 |
---|---|
564 | $this->posts = array(); |
565 | } elseif ('private' == $this->posts[0]->post_status) { |
566 | if ($this->posts[0]->post_author != $user_ID) |
567 | $this->posts = array(); |
568 | } |
569 | } |
570 | } |
571 | } |
572 |
|
573 | $this->posts = apply_filters('the_posts', $this->posts); |
574 | $this->post_count = count($this->posts); |
575 | if ($this->post_count > 0) { |
576 | $this->post = $this->posts[0]; |
577 | } |
578 |
|
579 | update_post_caches($this->posts); |
580 | |
581 | // Save any changes made to the query vars. |
582 | $this->query_vars = $q; |