do_action( ‘wp_creating_autosave’, array $new_autosave, bool $is_update )

In this article

Fires before an autosave is stored.

Parameters

$new_autosavearray
Post array – the autosave that is about to be saved.
$is_updatebool
Whether this is an existing autosave.

Source

do_action( 'wp_creating_autosave', $new_autosave, true );

Changelog

VersionDescription
6.4.0The $is_update parameter was added to indicate if the autosave is being updated or was newly created.
4.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.