For the complete documentation index, see llms.txt. This page is also available as Markdown.

porter/filter/search_placeholder

Type: Filter Location: includes/premium/filters/traits/trait-FilterGenerator.php:117

apply_filters(
    'porter/filter/search_placeholder',
    __( 'Search', 'porterwp' ),
    $key,
    $this->postType ?? 'post',
    $this->filterSettings ?? []
);

Description

Allows a theme or child theme to change the Premium Filters search input placeholder without overriding the search template.

Parameters

Position
Variable
Description

1

$placeholder

The default translated placeholder text.

2

$key

The query-string key used by the field. Usually ps, or s on search requests.

3

$post_type

The current Porter filter post type, when available.

4

$filter_settings

The current filter settings array passed into the filter template.

Example

Last updated