Property | Type | Description | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$post_type | string | Post type. | |
$rest_base | string | Route base. |
Method | Description | |
---|---|---|
create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Create a single order note. | |
create_item_permissions_check ( WP_REST_Request $request ) : boolean | Check if a given request has access create order notes. | |
delete_item ( WP_REST_Request $request ) : WP_REST_Response | WP_Error | Delete a single order note. | |
delete_item_permissions_check ( WP_REST_Request $request ) : boolean | Check if a given request has access delete a order note. | |
get_collection_params ( ) : array | Get the query params for collections. | |
get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Get a single order note. | |
get_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check if a given request has access to read a order note. | |
get_item_schema ( ) : array | Get the Order Notes schema, conforming to JSON Schema. | |
get_items ( WP_REST_Request $request ) : array | Get order notes from an order. | |
get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check whether a given request has permission to read order notes. | |
prepare_item_for_response ( WP_Comment $note, WP_REST_Request $request ) : WP_REST_Response | Prepare a single order note output for response. | |
register_routes ( ) | Register the routes for order notes. |
Method | Description | |
---|---|---|
prepare_links ( WP_Comment $note ) : array | Prepare links for the request. |
public create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_Request | Full details about the request. |
return | WP_Error | WP_REST_Response |
public create_item_permissions_check ( WP_REST_Request $request ) : boolean | ||
$request | WP_REST_Request | Full details about the request. |
return | boolean |
public delete_item ( WP_REST_Request $request ) : WP_REST_Response | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
return | WP_REST_Response | WP_Error |
public delete_item_permissions_check ( WP_REST_Request $request ) : boolean | ||
$request | WP_REST_Request | Full details about the request. |
return | boolean |
public get_collection_params ( ) : array | ||
return | array |
public get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_Request | Full details about the request. |
return | WP_Error | WP_REST_Response |
public get_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | ||
$request | WP_REST_Request | Full details about the request. |
return | WP_Error | boolean |
public get_item_schema ( ) : array | ||
return | array |
public get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | ||
$request | WP_REST_Request | Full details about the request. |
return | WP_Error | boolean |
public prepare_item_for_response ( WP_Comment $note, WP_REST_Request $request ) : WP_REST_Response | ||
$note | WP_Comment | Order note object. |
$request | WP_REST_Request | Request object. |
return | WP_REST_Response | $response Response data. |
protected prepare_links ( WP_Comment $note ) : array | ||
$note | WP_Comment | Delivery order_note object. |
return | array | Links for the given order note. |