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 |
---|---|
81 |
|
82 | break; |
83 | } |
84 | } |
85 | } |
86 | } |
87 |
|
88 | $wpvarstoreset = array('m','p','posts','w', 'cat','withcomments','s','search','exact', 'sentence', 'debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup'); |
89 |
|
90 | $wpvarstoreset = apply_filters('query_vars', $wpvarstoreset); |
91 |
|
92 | for ($i=0; $i<count($wpvarstoreset); $i += 1) { |
93 | $wpvar = $wpvarstoreset[$i]; |
94 | if (!isset($$wpvar)) { |
95 | if (empty($_POST[$wpvar])) { |
96 | if (empty($_GET[$wpvar]) && empty($query_vars[$wpvar])) { |
97 | $$wpvar = ''; |
98 | } elseif (!empty($_GET[$wpvar])) { |
99 | $$wpvar = $_GET[$wpvar]; |