Search_Handler implements Registerable, Service

Handle the DLP Search.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Service

Table of Contents

filter_search_page_content()  : string
Filter the_content to display search results.
get_search_box_html()  : mixed
Outputs a global search box.
handle_search_redirect()  : mixed
Redirect 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 the_content to display search results.

public filter_search_page_content(string $content) : string
Parameters
$content : string
Tags
Return values
string

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 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
Tags
Return values
mixed

Search results