# New event hooks available on Plugins SDK

[date: 2022-11-25T16:00:00.786+01:00]

On plugins, it is now possible to intercept when the user wants to perform a specific action on one (or multiple) records, via a new set of event hooks:

-   `onBeforeItemUpsert`: when the user wants to save a record (both creation and update);
-   `onBeforeItemsDestroy`: when the user wants to delete one (or more) records;
    
-   `onBeforeItemsPublish`: when the user wants to publish one (or more) records;
-   `onBeforeItemsUnpublish`: when the user wants to unpublish one (or more) records;
    

Please [read our updated documentation](https://www.datocms.com/docs/plugin-sdk/event-hooks.md#intercept-actions-on-records) to learn how to use them!