wp_create_post_autosave
wp_create_post_autosave ( $post_data )
Parameters:- (array|int) post_data Associative array containing the post data, or integer post ID. If a numeric post ID is provided, will use the `$_POST` superglobal.
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.