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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
388 | |
389 | if ( ! empty($qv['robots']) ) { |
390 | $this->is_robots = true; |
391 | return; |
392 | } |
393 |
|
394 | if ('404' == $qv['error']) { |
395 | $this->is_404 = true; |
396 | if ( !empty($query) ) { |
397 | do_action_ref_array('parse_query', array(&$this)); |
398 | } |
399 | return; |
400 | } |
401 |
|
402 | $qv['m'] = (int) $qv['m']; |
403 | $qv['p'] = (int) $qv['p']; |
404 |
|
405 | // Compat. Map subpost to attachment. |
406 | if ( '' != $qv['subpost'] ) |
Line | Code |
536 |
|
537 | if ( $this->is_single || $this->is_page || $this->is_attachment ) |
538 | $this->is_singular = true; |
539 |
|
540 | if ( ! ($this->is_singular || $this->is_archive || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_comments_popup)) { |
541 | $this->is_home = true; |
542 | } |
543 |
|
544 | if ( !empty($query) ) { |
545 | do_action_ref_array('parse_query', array(&$this)); |
546 | } |
547 | } |
548 |
|
549 | function set_404() { |
550 | $is_feed = $this->is_feed; |
551 |
|
552 | $this->init_query_flags(); |
553 | $this->is_404 = true; |
554 |
|