Partners

Product Updates

DatoCMS changelog for new features and general improvements
PluginsNew
New event hooks available on Plugins SDK
November 25th, 2022

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 to learn how to use them!