WordPress at a glance
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.


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

	return $got_rewrite;
Whether Apache and mod_rewrite are present.

Список изменений

С версии 2.5.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.