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 |
---|---|
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 ''; |