Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: parse_query

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
1667           $this->is_singular = $this->is_single || $this->is_page || $this->is_attachment;
1668           // Done correcting is_* for page_on_front and page_for_posts
1669
1670           if ( '404' == $qv['error'] )
1671                $this->set_404();
1672
1673           $this->query_vars_hash = md5( serialize( $this->query_vars ) );
1674           $this->query_vars_changed = false;
1675
1676           do_action_ref_array('parse_query', array(&$this));
1677      }
1678
1679      /*
1680       * Parses various taxonomy related query vars.
1681       *
1682       * @access protected
1683       * @since 3.1.0
1684       *
1685       * @param array &$q The query variables