Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/post.php | do_action | 1923 | /** * Fires before an autosave is stored. * * @since 4.1.0 * * @param array $new_autosave Post array - the autosave that is about to be saved. */ |
wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php | do_action | 393 | /** * Creates autosave for the specified post. * * From wp-admin/post.php. * * @since 5.0.0 * * @param array $post_data Associative array containing the post data. * @return mixed The autosave revision ID or WP_Error. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $new_autosave | Post array - the autosave that is about to be saved. |