Fires immediately after a single post is deleted or trashed via the REST API.
Description
They dynamic portion of the hook name, $this->post_type, refers to the post type slug. Possible hook names include: <ul> <li>rest_delete_post</li> <li>rest_delete_page</li> <li>rest_delete_attachment</li> </ul>
1186* @since 4.7.01187*1188* @param WP_Post$post The deleted or trashed post.1189* @param WP_REST_Response$response The response data.1190* @param WP_REST_Request$request The request sent to the API.1191*/1192do_action("rest_delete_{$this->post_type}",$post,$response,$request);11931194return$response;1195}11961197/**1198* Determines the allowed query_vars for a get_items() response and prepares
History
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.