apply_filters( 'findstr_search_menu_item_title', $title string, $item WP_Post )
add_filter( 'findstr_search_menu_item_title', $title string, $item WP_Post )
Filter the search menu item title
Use this filter to change the menu item title or markup.
By default, it displays a search icon with an HTML span element.
<span class="findstr-search-icon">
<svg class="feather feather-search" fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<circle cx="11" cy="11" r="8"/><line x1="21" x2="16.65" y1="21" y2="16.65"/>
</svg>
</span>
Parameters
| Name | Type | Description |
|---|---|---|
$title | string | The title |
$item | WP_Post | The menu item |
- Source
Returns:
Title
- Type:
- string