Summery Summery
Determines if the specified post is an autosave.
Syntax Syntax
Parameters Parameters
- $post
-
(Required) Post ID or post object.
Return Return
(int|false) ID of autosave's parent on success, false if not a revision.
Source Source
File: wp-includes/revision.php
return false; } return (int) $post->post_parent; } /** * Determines if the specified post is an autosave. * * @since 2.6.0 * * @param int|WP_Post $post Post ID or post object.
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |