Filters whether a post trashing should take place.
Parameters
$trash
bool|null- Whether to go forward with trashing.
$post
WP_Post- Post object.
$previous_status
string- The status of the post about to be trashed.
Source
$check = apply_filters( 'pre_trash_post', null, $post, $previous_status );
User Contributed Notes
You must log in before being able to contribute a note or feedback.