Description
Fires before a post is sent to the Trash.
Occurrences
Filename | Line Number |
---|---|
wp-includes/post.php | 3757 |
wp-includes/class-wp-customize-manager.php | 3096 |
Parameters
Type | Name | Description |
---|---|---|
int | $post_id | Post ID. |
string | $previous_status | The status of the post about to be trashed. |
PHP Doc
/**
* Fires before a post is sent to the Trash.
*
* @since 3.3.0
* @since 6.3.0 Added the `$previous_status` parameter.
*
* @param int $post_id Post ID.
* @param string $previous_status The status of the post about to be trashed.
*/