rest_delete_{$this->post_type}

rest_delete_{$this->post_type}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('rest_delete_{$this->post_type}') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php line 1166
    		 * @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.
    		 */
    		do_action( "rest_delete_{$this->post_type}", $post, $response, $request );
    
    		return $response;
    	}
    
    	/**
    	 * Determines the allowed query_vars for a get_items() response and prepares