I need to have control over the trash / delete action on a custom post type.
I need to check for some conditions and decide if i should trash the CPT or not.
The wp_trash_action hook that is fired before the trash function does not give me the option to cancel the trash procedure.
To be more specific , i need to check for a condition when the user presses TRASH. If that condition is false then i need to stop the trashing action. If it is true it should continue.