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 |
|---|---|
| 1723 | $rules = "<rule name=\"wordpress\" patternSyntax=\"Wildcard\">\n"; |
| 1724 | $rules .= " <match url=\"*\" />\n"; |
| 1725 | $rules .= " <conditions>\n"; |
| 1726 | $rules .= " <add input=\"{REQUEST_FILENAME}\" matchType=\"IsFile\" negate=\"true\" />\n"; |
| 1727 | $rules .= " <add input=\"{REQUEST_FILENAME}\" matchType=\"IsDirectory\" negate=\"true\" />\n"; |
| 1728 | $rules .= " </conditions>\n"; |
| 1729 | $rules .= " <action type=\"Rewrite\" url=\"index.php\" />\n"; |
| 1730 | $rules .= "</rule>"; |
| 1731 | |
| 1732 | $rules = apply_filters('iis7_url_rewrite_rules', $rules); |
| 1733 | |
| 1734 | return $rules; |
| 1735 | } |
| 1736 | |
| 1737 | /** |
| 1738 | * Add a straight rewrite rule. |
| 1739 | * |
| 1740 | * Any value in the $after parameter that isn't 'bottom' will be placed at |
| 1741 | * the top of the rules. |