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>
1191* @since 4.7.01192*1193* @param WP_Post$post The deleted or trashed post.1194* @param WP_REST_Response$response The response data.1195* @param WP_REST_Request$request The request sent to the API.1196*/1197do_action("rest_delete_{$this->post_type}",$post,$response,$request);11981199return$response;1200}12011202/**1203* 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.