delete_post_{$post->post_type}
delete_post_{$post->post_type}
Appears in: wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2
Hook Type: action
Displaying hooks found in version: wordpress-6.7.2do_action('delete_post_{$post->post_type}') is found 1 times:
- /wp-includes/post.php line 377237683769377037713772377337743775377637773778
*
* @param int
$post_id
Post ID.
* @param WP_Post
$post
Post object.
*/
do_action(
"delete_post_{$post->post_type}"
,
$post_id
,
$post
);
/**
* Fires immediately before a post is deleted from the database.
*
* @since 1.2.0
* @since 5.5.0 Added the `
$post
` parameter.