The event pipeline is divided into multiple stages out of which four are available to register custom-developed or third-party plugins.
Mentioned here are the four stages in the plugin execution pipeline in which we can register custom code:
Event |
Stage Name |
Stage Number |
Description |
Pre-Event |
Pre-Validation |
10 |
The plugins registered in this stage are executed before the main operation. The events are executed outside of the main database transaction. |
Pre-Event |
Pre-Operation |
20 |
The plugins registered in this stage are executed before the mail operation. The events are executed within the database transaction. |
Platform Core Operation |
Main Operation |
30 |
This stage is only meant for internal use and no plugins can be registered in this stage. Main operations such as create and update are executed in this stage. |
Post-Event |
Post-Operation |
40 |
The plugins registered in this stage are executed after the main operation. The events are executed within the database transaction. |