do_action( ‘after_delete_post’, int $postid, WP_Post $post )

Fires after a post is deleted, at the conclusion of wp_delete_post() .

Description

See also

Parameters

$postidint
Post ID.
$postWP_Post
Post object.

Source

do_action( 'after_delete_post', $postid, $post );

Changelog

VersionDescription
5.5.0Added the $post parameter.
3.2.0Introduced.

User Contributed Notes

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