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 |
|---|---|
| 1557 | } |
| 1558 | |
| 1559 | // Put them together. |
| 1560 | if ( $this->use_verbose_page_rules ) |
| 1561 | $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $registration_pages, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules); |
| 1562 | else |
| 1563 | $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules); |
| 1564 | |
| 1565 | do_action_ref_array('generate_rewrite_rules', array(&$this)); |
| 1566 | $this->rules = apply_filters('rewrite_rules_array', $this->rules); |
| 1567 | |
| 1568 | return $this->rules; |
| 1569 | } |
| 1570 | |
| 1571 | /** |
| 1572 | * Retrieve the rewrite rules. |
| 1573 | * |
| 1574 | * The difference between this method and {@link |
| 1575 | * WP_Rewrite::rewrite_rules()} is that this method stores the rewrite rules |