got_rewrite
This is a WordPress - got_rewrite hook. The plugin just uses it.
Filters whether Apache and mod_rewrite are present.
Usage
add_filter( 'got_rewrite', 'wp_kama_got_rewrite_filter' );
/**
* Function for `got_rewrite` filter-hook.
*
* @param bool $got_rewrite Whether Apache and mod_rewrite are present.
*
* @return bool
*/
function wp_kama_got_rewrite_filter( $got_rewrite ){
// filter...
return $got_rewrite;
}
- $got_rewrite(true|false)
- Whether Apache and mod_rewrite are present.
Where the hook is called
got_rewrite
wp-super-cache/rest/class.wp-super-cache-rest-get-status.php 106
if ( $wp_cache_mod_rewrite && false == apply_filters( 'got_rewrite', $got_rewrite ) ) {