wp_creating_autosave WordPress Action Hook
The wp_creating_autosave hook is triggered when an autosave is being created. It allows you to modify the data that will be saved to the database.
do_action( 'wp_creating_autosave', array $new_autosave ) #
Fires before an autosave is stored.
Parameters
- $new_autosave
(array)Post array
- the autosave that is about to be saved.
Source
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |