Action hook 'deleted_post'

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

Description

Fires immediately after a post is deleted from the database.

Occurrences

Filename Line Number
wp-includes/post.php 3643
wp-includes/post.php 6462

Parameters

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

PHP Doc

/**
	 * Fires immediately after a post is deleted from the database.
	 *
	 * @since 2.2.0
	 * @since 5.5.0 Added the `$post` parameter.
	 *
	 * @param int     $post_id Post ID.
	 * @param WP_Post $post    Post object.
	 */