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
195           if (strstr($_SERVER['PHP_SELF'], 'wp-admin/')) {
196                $this->is_admin = true;
197           }
198
199           if ( ! ($this->is_archive || $this->is_single || $this->is_page || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_comments_popup)) {
200                $this->is_home = true;
201           }
202
203           if ( !empty($query) ) {
204                do_action('parse_query', array(&$this));
205           }
206      }
207
208      function get($query_var) {
209           if (isset($this->query_vars[$query_var])) {
210                return $this->query_vars[$query_var];
211           }
212
213           return '';