Méthode | Description | |
---|---|---|
create_item ( WP_REST_Request $request ) : WP_REST_Request | WP_Error | Create a single Shipping Zone. | |
delete_item ( WP_REST_Request $request ) : WP_REST_Request | WP_Error | Delete a single Shipping Zone. | |
get_item ( WP_REST_Request $request ) : WP_REST_Response | Get a single Shipping Zone. | |
get_item_schema ( ) : array | Get the Shipping Zones schema, conforming to JSON Schema | |
get_items ( WP_REST_Request $request ) : WP_REST_Response | Get all Shipping Zones. | |
prepare_item_for_response ( array $item, WP_REST_Request $request ) : WP_REST_Response | Prepare the Shipping Zone for the REST response. | |
register_routes ( ) | Register the routes for Shipping Zones. | |
update_item ( WP_REST_Request $request ) : WP_REST_Request | WP_Error | Update a single Shipping Zone. |
Méthode | Description | |
---|---|---|
prepare_links ( integer $zone_id ) : array | Prepare links for the request. |
public create_item ( WP_REST_Request $request ) : WP_REST_Request | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | WP_REST_Request | WP_Error |
public delete_item ( WP_REST_Request $request ) : WP_REST_Request | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | WP_REST_Request | WP_Error |
public get_item ( WP_REST_Request $request ) : WP_REST_Response | ||
$request | WP_REST_Request | |
Résultat | WP_REST_Response |
public get_item_schema ( ) : array | ||
Résultat | array |
public get_items ( WP_REST_Request $request ) : WP_REST_Response | ||
$request | WP_REST_Request | |
Résultat | WP_REST_Response |
public prepare_item_for_response ( array $item, WP_REST_Request $request ) : WP_REST_Response | ||
$item | array | Shipping Zone. |
$request | WP_REST_Request | Request object. |
Résultat | WP_REST_Response | $response |
protected prepare_links ( integer $zone_id ) : array | ||
$zone_id | integer | Given Shipping Zone ID. |
Résultat | array | Links for the given Shipping Zone. |
public update_item ( WP_REST_Request $request ) : WP_REST_Request | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | WP_REST_Request | WP_Error |