Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post.php | do_action | 3475 | /** * Fires immediately after a post is deleted from the database. * * @since 2.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 | 6450 | /** * 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. |