Fires immediately after a post is deleted from the database.
Parameters
$post_idint- Post ID.
$postWP_Post- Post object.
Source
do_action( 'deleted_post', $post_id, $post );
| CARVIEW |
Fires immediately after a post is deleted from the database.
$post_idint$postWP_Postdo_action( 'deleted_post', $post_id, $post );
| Used by | Description |
|---|---|
wp_delete_attachment()wp-includes/post.php | Trashes or deletes an attachment. |
wp_delete_post()wp-includes/post.php | Trashes or deletes a post or page. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.