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 |
---|---|
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(); |