wpce_save_node v3.20
Fires for each Node in a WPCE Document when it's about to be saved.
Parameters
object $nodeThe node that is being saved. The object is a clone of the original node, so it can be modified without affecting the original document tree.
WPCE\Document $documentThe
Documentwhich contains the node.
Example
php
add_action('wpce_save_node', function (object $node, WPCE\Document $document) {
// ...
}, 10, 2);Related
INFO
This hook existed since WPCE v3.14, but was only used internally. Since v3.20, it's now a public hook with a slightly adjusted signature.