WordPress at a glance
filter is not described

(permastructname)_rewrite_rules filter-hook . WP 3.1.0

Filters rewrite rules used for individual permastructs.

The dynamic portion of the hook name, $permastructname, refers to the name of the registered permastruct, e.g. 'post_tag' (tags), 'category' (categories), etc.


add_filter( '(permastructname)_rewrite_rules', 'filter_function_name_4698' );
function filter_function_name_4698( $rules ){
	// filter...

	return $rules;
Array of rewrite rules generated for the current permastruct, keyed by their regex pattern.

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

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

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

wp-includes/class-wp-rewrite.php 1407
$rules = apply_filters( "{$permastructname}_rewrite_rules", $rules );

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

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