Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: got_rewrite

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
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  *