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 |
|---|---|
| 22 | * This filter was previously used to force URL rewriting for other servers, |
| 23 | * like nginx. Use the got_url_rewrite filter in got_url_rewrite() instead. |
| 24 | * |
| 25 | * @since 2.5.0 |
| 26 | * |
| 27 | * @see got_url_rewrite() |
| 28 | * |
| 29 | * @param bool $got_rewrite Whether Apache and mod_rewrite are present. |
| 30 | */ |
| 31 | return apply_filters( 'got_rewrite', $got_rewrite ); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Returns whether the server supports URL rewriting. |
| 36 | * |
| 37 | * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx. |
| 38 | * |
| 39 | * @since 3.7.0 |
| 40 | * |