search_rewrite_rules

search_rewrite_rules

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('search_rewrite_rules') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1378
    		 * @since 1.5.0
    		 *
    		 * @param string[] $search_rewrite Array of rewrite rules for search queries, keyed by their regex pattern.
    		 */
    		$search_rewrite = apply_filters( 'search_rewrite_rules', $search_rewrite );
    
    		// Author rewrite rules.
    		$author_rewrite = $this->generate_rewrite_rules( $this->get_author_permastruct(), EP_AUTHORS );
    
    		/**
    		 * Filters rewrite rules used for author archives.