wp_autosave
wp_autosave ( $post_data )
Parameters:- (array) post_data Associative array of the submitted post data.
Returns:- (mixed) The value 0 or WP_Error on failure. The saved post ID on success. The ID can be the draft post_id or the autosave revision post_id.
Defined at: - Introduced in WordPress: 3.9.0
- Deprecated in WordPress: —
Description
Saves a post submitted with XHR.Intended for use with heartbeat and autosave.js