On this page
apply_filters( 'got_rewrite', bool $got_rewrite )
Filters whether Apache and mod_rewrite are present.
Description
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.
See also
Parameters
$got_rewritebool-
Whether Apache and mod_rewrite are present.
Source
File: wp-admin/includes/misc.php. View all references
return apply_filters( 'got_rewrite', $got_rewrite );
Related
Used By
| Used By | Description |
|---|---|
| got_mod_rewrite() wp-admin/includes/misc.php | Returns whether the server is running Apache with the mod_rewrite module loaded. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/got_rewrite