Used By
Used By | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::delete_item() | Deletes a single post. |
Filters whether a post is trashable.
The dynamic portion of the hook name, $this->post_type
, refers to the post type slug.
Pass false to disable Trash support for the post.
(bool) Whether the post type support trashing.
(WP_Post) The Post object being considered for trashing support.
File: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_this-post_type_trashable