On this page
do_action( 'wp_creating_autosave', array $new_autosave )
Fires before an autosave is stored.
Parameters
$new_autosavearray-
Post array - the autosave that is about to be saved.
Source
File: wp-admin/includes/post.php. View all references
do_action( 'wp_creating_autosave', $new_autosave );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Autosaves_Controller::create_post_autosave() wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php | Creates autosave for the specified post. |
| wp_create_post_autosave() wp-admin/includes/post.php | Creates autosave data for the specified post from |
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_creating_autosave