Fires before an autosave is stored.
$new_autosavearray$is_updateboolwp-admin/includes/post.php:2005wp_create_post_autosave()wp-admin/includes/post.php:2018wp_create_post_autosave()wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:428WP_REST_Autosaves_Controller::create_post_autosave() * @since 4.1.0 * @since 6.4.0 The `$is_update` parameter was added to indicate if the autosave is being updated or was newly created. * * @param array $new_autosave Post array - the autosave that is about to be saved. * @param bool $is_update Whether this is an existing autosave. */ do_action( 'wp_creating_autosave', $new_autosave, true ); return wp_update_post( $new_autosave ); } // _wp_put_post_revision() expects unescaped. $post_data = wp_unslash( $post_data );Introduced in 4.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.