Action hook 'after_delete_post'

in WP Core File wp-includes/post.php at line 3666

Description

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

Occurrences

Filename Line Number
wp-includes/post.php 3666

Parameters

Type Name Description
int $post_id Post ID.
WP_Post $post Post object.

PHP Doc

/**
	 * Fires after a post is deleted, at the conclusion of wp_delete_post().
	 *
	 * @since 3.2.0
	 * @since 5.5.0 Added the `$post` parameter.
	 *
	 * @see wp_delete_post()
	 *
	 * @param int     $post_id Post ID.
	 * @param WP_Post $post    Post object.
	 */