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.


Top ↑

Source

File: wp-admin/includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More