Filters whether Apache and mod_rewrite are present.
This filter was previously used to force URL rewriting for other servers, like nginx. Use the ‘got_url_rewrite’ filter in got_url_rewrite() instead.
$got_rewritebool
return apply_filters( 'got_rewrite', $got_rewrite );
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/got_rewrite