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:

Description

Creates autosave data for the specified post from `$_POST` data.

Related Functions

wp_get_post_autosave, wp_is_post_autosave, wp_get_post_cats, wp_set_post_cats, wp_resolve_post_date

Top Google Results

User discussions

wpseek mobile