Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: mod_rewrite_rules

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
1422                }
1423           } else {
1424                $rules .= "RewriteCond %{REQUEST_FILENAME} !-f\n" .
1425                     "RewriteCond %{REQUEST_FILENAME} !-d\n" .
1426                     "RewriteRule . {$home_root}{$this->index} [L]\n";
1427           }
1428
1429           $rules .= "</IfModule>\n";
1430
1431           $rules = apply_filters('mod_rewrite_rules', $rules);
1432           $rules = apply_filters('rewrite_rules', $rules);  // Deprecated
1433
1434           return $rules;
1435      }
1436
1437      function flush_rules() {
1438           generate_page_rewrite_rules();
1439           delete_option('rewrite_rules');
1440           $this->wp_rewrite_rules();