benecaster_ai_search_after_pin_delete
Fires after a pinned result was deleted on Show Settings → AI Search (or through the pins REST routes), only once the delete succeeded.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$pin |
array |
— | The pin as it was: `{ id, show_id, keyword, post_id, active, priority, created_at }` |
Example
add_action( 'benecaster_ai_search_after_pin_delete', function ( array $pin ): void {
my_plugin_audit_log( 'pin_deleted', $pin );
} );
Notes
Walkthrough: Manage or change AI Search's pinned results.
Affects
- Show Settings → AI Search
Need this built rather than just documented? See our services →