got_rewrite filter-hookWPSCache 1.0

Это хук WordPress - got_rewrite. Плагин его просто использует.

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

WP_Super_Cache_Rest_Get_Status::add_rewrite_status()
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 ) ) {

Where the hook is used in WP Super Cache

Usage not found.