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:

Description

Save a post submitted with XHR

Intended for use with heartbeat and autosave.js

Related Functions

wp_is_post_autosave, wp_get_post_autosave, wpautop, wp_create_post_autosave, wp_list_authors

Top Google Results

User discussions

wpseek mobile