wp_delete_post_revision


wp_delete_post_revision ( $revision_id )

Parameters:
  • (int|WP_Post) $revision_id Revision ID or revision object.
Returns:
  • (array|false|WP_Post|WP_Error|null) Null or WP_Error if error, deleted post if success.
Defined at:

Description

Deletes a revision.

Deletes the row from the posts table corresponding to the specified revision.

Related Functions

wp_get_post_revision, wp_get_post_revisions, wp_restore_post_revision, wp_list_post_revisions, wp_save_post_revision

Top Google Results

User discussions

wpseek mobile