WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about delete_post

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php do_action 3459 /**
* Fires immediately before a post is deleted from the database.
*
* @since 1.2.0
* @since 5.5.0 Added the `$post` parameter.
*
* @param int $postid Post ID.
* @param WP_Post $post Post object.
*/
wp-includes/post.php do_action 6444 /**
* Fires before an attachment is deleted, at the start of wp_delete_attachment().
*
* @since 2.0.0
* @since 5.5.0 Added the `$post` parameter.
*
* @param int $post_id Attachment ID.
* @param WP_Post $post Post object.
*/

Hook Parameters

Parameter Type Name Description
int $postid Post ID.
WP_Post $post Post object.
int $postid Post ID.
WP_Post $post Post object.