Skip to main content

benecaster_ai_search_before_pin_delete

Action Premium ai-search

Fires before a pinned result is deleted on Show Settings → AI Search (or through DELETE benecaster-ai-search/v1/shows/{show_id}/pins/{id}). Not fired for a pin that does not exist.

Parameters

Name Type Default Description
$pin array — `{ id, show_id, keyword, post_id, active, priority, created_at }`

Example

add_action( 'benecaster_ai_search_before_pin_delete', function ( array $pin ): void {
    update_option( 'my_last_deleted_pin', $pin, false );
} );

Notes

If the delete then fails, benecaster_ai_search_after_pin_delete does not fire. Walkthrough: Manage or change AI Search's pinned results.

Affects

  • Show Settings → AI Search

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