Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: query_vars

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
1595                          unset($error);
1596                          
1597                     if ( isset($query_vars) && strstr($_SERVER['PHP_SELF'], 'wp-admin/') )
1598                          unset($query_vars);
1599                          
1600                     $this->did_permalink = false;
1601                }
1602           }
1603
1604           $this->public_query_vars = apply_filters('query_vars', $this->public_query_vars);
1605
1606           for ($i=0; $i<count($this->public_query_vars); $i += 1) {
1607                $wpvar = $this->public_query_vars[$i];
1608                if (isset($extra_query_vars[$wpvar]))
1609                     $this->query_vars[$wpvar] = $extra_query_vars[$wpvar];
1610                elseif (isset($GLOBALS[$wpvar]))
1611                     $this->query_vars[$wpvar] = $GLOBALS[$wpvar];
1612                elseif (!empty($_POST[$wpvar]))
1613                     $this->query_vars[$wpvar] = $_POST[$wpvar];