Skip to main content

benecaster_ai_search_before_panel_search

Action Premium ai-search

Fires before a search from the AI Search production panel, the side panel beside every Benecaster admin screen where a podcaster searches their own back catalog, asks the provider. Only the shows that passed the check are passed: a show with AI Search switched off is dropped. Not fired for a refused request.

Parameters

Name Type Default Description
$query string — The search, trimmed
$show_ids int[] — The shows being searched, each with AI Search switched on

Example

add_action( 'benecaster_ai_search_before_panel_search', function ( string $query, array $show_ids ): void {
    do_action( 'my_plugin_timer_start', 'ai_search_panel' );
}, 10, 2 );

Notes

Affects

  • GET benecaster-ai-search/v1/panel/search

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