WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_delete_

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php do_action 1095 /**
* Fires immediately after a single post is deleted or trashed via the REST API.
*
* They dynamic portion of the hook name, `$this->post_type`, refers to the post type slug.
*
* Possible hook names include:
*
* - `rest_delete_post`
* - `rest_delete_page`
* - `rest_delete_attachment`
*
* @since 4.7.0
*
* @param WP_Post $post The deleted or trashed post.
* @param WP_REST_Response $response The response data.
* @param WP_REST_Request $request The request sent to the API.
*/
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php do_action 796 /**
* Fires after a single term is deleted via the REST API.
*
* The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug.
*
* Possible hook names include:
*
* - `rest_delete_category`
* - `rest_delete_post_tag`
*
* @since 4.7.0
*
* @param WP_Term $term The deleted term.
* @param WP_REST_Response $response The response data.
* @param WP_REST_Request $request The request sent to the API.
*/
wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php do_action 398 /**
* Deletes a single term from a taxonomy.
*
* @since 5.9.0
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
*/

Hook Parameters

Parameter Type Name Description
WP_Post $post The deleted or trashed post.
WP_REST_Response $response The response data.
WP_REST_Request $request The request sent to the API.
WP_Term $term The deleted term.
WP_REST_Response $response The response data.
WP_REST_Request $request The request sent to the API.