WPDev.one
Core Function
View Source on Trac ↗

wp_is_post_autosave()

wp_is_post_autosave( mixed $post )

Determines if the specified post is an autosave.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Post ID or post object.

Required

Return Value

((int)
| false) ID of autosave's parent on success, false if not a revision.

Function Information

Since Version
2.6.0
Source File
wp-includes/revision.php
Advertisement