Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_posts

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2748                          if ( 'publish' != $sticky_post->post_status )
2749                               continue;
2750                          array_splice($this->posts, $sticky_offset, 0, array($sticky_post));
2751                          $sticky_offset++;
2752                     }
2753                }
2754           }
2755
2756           if ( !$q['suppress_filters'] )
2757                $this->posts = apply_filters_ref_array('the_posts', array( $this->posts, &$this ) );
2758
2759           $this->post_count = count($this->posts);
2760
2761           // Always sanitize
2762           foreach ( $this->posts as $i => $post ) {
2763                $this->posts[$i] = sanitize_post( $post, 'raw' );
2764           }
2765
2766           if ( $q['cache_results'] )