WordPress at Your Fingertips
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_7006' );
function filter_function_name_7006( $rules ){
	// filter...

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


Since 3.1.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.