do_action( "delete_post_{$post->post_type}", int $postid, WP_Post $post )

Fires immediately before a post is deleted from the database.


Description

The dynamic portion of the hook name, $post->post_type, refers to the post type slug.


Parameters

$postid

Post ID.

$post

Post object.


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
6.6.0
CP-2.1.0 Introduced. CP-2.1.0