Action hook 'wp_creating_autosave'

in WP Core File wp-admin/includes/post.php at line 1988

Description

Fires before an autosave is stored.

Occurrences

Filename Line Number
wp-admin/includes/post.php 1988
wp-admin/includes/post.php 2001
wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php 412

Parameters

Type Name Description
array $new_autosave Post array - the autosave that is about to be saved.
bool $is_update Whether this is an existing autosave.

PHP Doc

/**
		 * Fires before an autosave is stored.
		 *
		 * @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.
		 */