got_rewrite filter-hookWP 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', '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.

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 the hook is used in WordPress

Usage not found.