apply_filters( 'got_rewrite', bool $got_rewrite )
- Since
- 2.5.0
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.
Parameters
$got_rewritebool- Whether Apache and mod_rewrite are present.
Fired at · 1
wp-admin/includes/misc.php:31got_mod_rewrite()
Source
View on Trac ↗View on GitHub ↗
25 * @since 2.5.026 *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.
History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.