Skip to main content

benecaster_search_output

Filter Free

Filters the final rendered HTML of the benecaster_search shortcode before it is returned to the page. The output includes the search input field and the results container. Use to wrap the shortcode in a custom container, inject surrounding markup, or replace the output entirely.

This is a Free filter.

Parameters

Name Type Default Description
$html string — Rendered shortcode HTML including the search input and results area
$atts array — Resolved shortcode attributes including show_id, placeholder, per_page, and style

Returns: string

Examples

Wrap in custom section element

add_filter( 'benecaster_search_output', function( string $html, array $atts ): string {
    return '<section class="episode-search">' . $html . '</section>';
}, 10, 2 );

Affects

Need this built rather than just documented? See our services →