Filters whether a post trashing should take place.
$trashbool|null$postWP_Post$previous_statusstringwp-includes/class-wp-customize-manager.php:3090WP_Customize_Manager::trash_changeset_post()wp-includes/post.php:3911wp_trash_post() * @since 6.3.0 Added the `$previous_status` parameter. * * @param bool|null $trash Whether to go forward with trashing. * @param WP_Post $post Post object. * @param string $previous_status The status of the post about to be trashed. */ $check = apply_filters( 'pre_trash_post', null, $post, $previous_status ); if ( null !== $check ) { return $check; } /**Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.