Core Function
View Source on Trac ↗ wp_save_post_revision_on_insert()
wp_save_post_revision_on_insert( mixed $post_id, mixed $post, mixed $update ) Saves revisions for a post after all changes have been made.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $post_id int | The post id that was inserted. Required |
| $post WP_Post | The post object that was inserted. Required |
| $update bool | Whether this insert is updating an existing post. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
6.4.0
Source File
wp-includes/revision.php
Advertisement