프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$post_type | string | Post type. | |
$rest_base | string | Route base. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | WP_Error | WP_REST_Response |
public create_item_permissions_check ( WP_REST_Request $request ) : boolean | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | boolean |
public delete_item ( WP_REST_Request $request ) : WP_REST_Response | WP_Error | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | WP_REST_Response | WP_Error |
public delete_item_permissions_check ( WP_REST_Request $request ) : boolean | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | boolean |
public get_collection_params ( ) : array | ||
리턴 | array |
public get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | 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. |
리턴 | WP_Error | boolean |
public get_item_schema ( ) : array | ||
리턴 | array |
public get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | 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. |
리턴 | WP_REST_Response | $response Response data. |
protected prepare_links ( WP_Comment $note ) : array | ||
$note | WP_Comment | Delivery order_note object. |
리턴 | array | Links for the given order note. |