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 |
---|---|
775 | $this->is_comment_feed = false; |
776 |
|
777 | $this->is_singular = $this->is_single || $this->is_page || $this->is_attachment; |
778 | // Done correcting is_* for page_on_front and page_for_posts |
779 |
|
780 | if ('404' == $qv['error']) |
781 | $this->set_404(); |
782 |
|
783 | if ( !empty($query) ) |
784 | do_action_ref_array('parse_query', array(&$this)); |
785 | } |
786 |
|
787 | function set_404() { |
788 | $is_feed = $this->is_feed; |
789 |
|
790 | $this->init_query_flags(); |
791 | $this->is_404 = true; |
792 |
|
793 | $this->is_feed = $is_feed; |