wpce_after_save v3.20
Fires after saving the WPCE document of a post.
INFO
This hook also triggers for saving revisions. Check the $post->post_type to make sure you're only handling the post types you're interested in.
Parameters
WP_Post $postThe post the saved document is attached to.
WPCE\Document $documentThe
Documentbeing saved.bool $previewWhether the document is being saved as a preview.
Example
php
add_action('wpce_after_save', function (WP_Post $post, WPCE\Document $document, bool $preview) {
// ...
}, 10, 3);