Search_Handler implements Registerable, Service
Handle the Global Search page.
Tags
Interfaces, Classes and Traits
- Registerable
 - Service
 
Table of Contents
- filter_search_page_content() : string
 - Filter in the search box and posts table to the search results page.
 - get_search_box_html() : mixed
 - Outputs a global search box.
 - handle_search_redirect() : mixed
 - Redirect a search from the widget or shortcode to the search results page.
 - protect_list_pages() : array<string|int, mixed>
 - Remove the search results page from list_pages
 - protect_nav_menus() : array<string|int, mixed>
 - Remove the search results page from the navigation menus.
 - register() : mixed
 - {@inheritdoc}
 
Methods
filter_search_page_content()
Filter in the search box and posts table to the search results page.
    public
                filter_search_page_content(string $content) : string
    
        Parameters
- $content : string
 
Tags
Return values
string —$content
get_search_box_html()
Outputs a global search box.
    public
            static    get_search_box_html(string $view, string $placeholder, string $button_text) : mixed
    
        Parameters
- $view : string
 - $placeholder : string
 - $button_text : string
 
Tags
Return values
mixed —handle_search_redirect()
Redirect a search from the widget or shortcode to the search results page.
    public
                handle_search_redirect() : mixed
    
    
    
    Tags
Return values
mixed —protect_list_pages()
Remove the search results page from list_pages
    public
                protect_list_pages(array<string|int, mixed> $excludes) : array<string|int, mixed>
    
        Parameters
- $excludes : array<string|int, mixed>
 
Tags
Return values
array<string|int, mixed> —protect_nav_menus()
Remove the search results page from the navigation menus.
    public
                protect_nav_menus(array<string|int, mixed> $menu_items) : array<string|int, mixed>
    
        Parameters
- $menu_items : array<string|int, mixed>
 
Tags
Return values
array<string|int, mixed> —register()
{@inheritdoc}
    public
                register() : mixed