{$permastructname}_rewrite_rules

{$permastructname}_rewrite_rules

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('{$permastructname}_rewrite_rules') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1435
    			 * @since 3.1.0
    			 *
    			 * @param string[] $rules Array of rewrite rules generated for the current permastruct, keyed by their regex pattern.
    			 */
    			$rules = apply_filters( "{$permastructname}_rewrite_rules", $rules );
    
    			if ( 'post_tag' === $permastructname ) {
    
    				/**
    				 * Filters rewrite rules used specifically for Tags.
    				 *