search_rewrite_rules

Advertisement

Summery Summery

Filters rewrite rules used for search archives.

Syntax Syntax

apply_filters( 'search_rewrite_rules', string[] $search_rewrite )

Description Description

Likely search-related archives include /search/search+query/ as well as pagination and feed paths for a search.

Parameters Parameters

$search_rewrite

(string[]) Array of rewrite rules for search queries, keyed by their regex pattern.

Source Source

File: wp-includes/class-wp-rewrite.php

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?