wp_save_post_revision_on_insert
wp_save_post_revision_on_insert ( $post_id, $post, $update )
Parameters:- (int) post_id The post id that was inserted.
- (WP_Post) post The post object that was inserted.
- (bool) update Whether this insert is updating an existing post.
Defined at: - Introduced in WordPress: 6.4.0
- Deprecated in WordPress: —
Description
Saves revisions for a post after all changes have been made.