WordPress at Your Fingertips
filter is not described

got_rewrite filter-hook . WP 2.5.0

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.

Usage

add_filter( 'got_rewrite', 'filter_function_name_2768' );
function filter_function_name_2768( $got_rewrite ){
	// filter...

	return $got_rewrite;
}
$got_rewrite(true|false)
Whether Apache and mod_rewrite are present.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

got_mod_rewrite()
got_rewrite
wp-admin/includes/misc.php 31
return apply_filters( 'got_rewrite', $got_rewrite );

Where in WP core the hook is used WordPress

Usage not found.