Definition:
function wp_get_post_autosave( $post_id ) {}
Retrieve the autosaved data of the specified post.
Returns a post object containing the information that was autosaved for the specified post.
Parameters
- int $post_id: The post ID.
Return values
returns:The autosaved data or false on failure or when no autosave exists.
Source code
function wp_get_post_autosave( $post_id ) {
if ( !$post = get_post( $post_id ) )
return false;
$q = array(
'name' => "{$post->ID}-autosave",
3727

February 12, 2011 


No comments yet... Be the first to leave a reply!