Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rewrite_rules_array

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
1721           do_action_ref_array( 'generate_rewrite_rules', array( &$this ) );
1722
1723           /**
1724            * Filter the full set of generated rewrite rules.
1725            *
1726            * @since 1.5.0
1727            *
1728            * @param array $this->rules The compiled array of rewrite rules.
1729            */
1730           $this->rules = apply_filters( 'rewrite_rules_array', $this->rules );
1731
1732           return $this->rules;
1733      }
1734
1735      /**
1736       * Retrieve the rewrite rules.
1737       *
1738       * The difference between this method and {@link
1739       * WP_Rewrite::rewrite_rules()} is that this method stores the rewrite rules