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>
1166* @since 4.7.01167*1168* @param WP_Post$post The deleted or trashed post.1169* @param WP_REST_Response$response The response data.1170* @param WP_REST_Request$request The request sent to the API.1171*/1172do_action("rest_delete_{$this->post_type}",$post,$response,$request);11731174return$response;1175}11761177/**1178* 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.