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 |
---|---|
21 | * |
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 | * @see got_url_rewrite() |
26 | * |
27 | * @since 2.5.0 |
28 | * @param bool $got_rewrite Whether Apache and mod_rewrite are present. |
29 | */ |
30 | return apply_filters( 'got_rewrite', $got_rewrite ); |
31 | } |
32 |
|
33 | /** |
34 | * Returns whether the server supports URL rewriting. |
35 | * |
36 | * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx. |
37 | * |
38 | * @since 3.7.0 |
39 | * |