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
1493                $this->is_comment_feed = false;
1494
1495           $this->is_singular = $this->is_single || $this->is_page || $this->is_attachment;
1496           // Done correcting is_* for page_on_front and page_for_posts
1497
1498           if ('404' == $qv['error'])
1499                $this->set_404();
1500
1501           if ( !empty($query) )
1502                do_action_ref_array('parse_query', array(&$this));
1503      }
1504
1505      /**
1506       * Sets the 404 property and saves whether query is feed.
1507       *
1508       * @since 2.0.0
1509       * @access public
1510       */
1511      function set_404() {