do_action ( “delete_post_{$post->post_type}”, int $post_id , WP_Post $post )

Fires immediately before a post is deleted from the database.

Description

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

Parameters

$post_id int
Post ID.
$post WP_Post
Post object.

Source

do_action( "delete_post_{$post->post_type}", $post_id, $post );

Changuelog

Versionen Description
6.6.0 Introduced.

User Contributed Notes

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