wp_is_post_autosave( int|WP_Post $post )

Determines if the specified post is an autosave.


11 related functions found for: wp_is_post_autosave

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordsautosav, autosave, exist, is, post, post-typ, post-type, revision-php, wp-includes, wp-is
wp-parser-packagePost_Revisions, WordPress
wp-parser-source-filewp-includes/revision.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • autosav
  • autosave
  • exist
  • is
  • post
  • Post_Revisions
  • post-typ
  • post-type
  • revision-php
  • wp-includes
  • wp-includes/revision.php
  • wp-is

Top ↑

Description Description


Top ↑

Parameters Parameters

$post

(int|WP_Post) (Required) Post ID or post object.


Top ↑

Return Return

(false|int) False if not a revision, ID of autosave's parent otherwise


Top ↑

Source Source

File: wp-includes/revision.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.