got_rewrite WordPress Filter Hook

The got_rewrite WordPress hook is called when the Rewrite Rules are loaded.

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.

Top ↑

See also


Top ↑

Parameters

$got_rewrite

(bool)Whether Apache and mod_rewrite are present.


Top ↑

Source

File: wp-admin/includes/misc.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.