apply_filters( 'pre_trash_post', bool $trash , WP_Post $post )
Filters whether a post trashing should take place.
Parameters
- $trash
-
(bool) Whether to go forward with trashing.
- $post
-
(WP_Post) Post object.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
WP-4.9.0 | Introduced. |