wp_create_post_autosave
wp_create_post_autosave ( $post_data )
Parameters:- (array|int) post_data Associative array containing the post data or int post ID.
Returns:- (int|WP_Error) The autosave revision ID. WP_Error or 0 on error.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Creates autosave data for the specified post from $_POST data.