HTTP/2 200
server: nginx
date: Sun, 12 Oct 2025 06:55:57 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
wp_save_post_revision_revisions_before_deletion – Hook | Developer.WordPress.org
WordPress Developer Resources
wp_save_post_revision_revisions_before_deletion
apply_filters( ‘wp_save_post_revision_revisions_before_deletion’, WP_Post[] $revisions, int $post_id )
Filters the revisions to be considered for deletion.
$revisions
WP_Post[]Array of revisions, or an empty array if none.
$post_id
intThe ID of the post to save as a revision.
Version | Description |
---|
6.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.