프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$post_type | string | Post type. | |
$request | array | Stores the request. | |
$rest_base | string | Route base. |
메소드 | 설명 | |
---|---|---|
__construct ( ) | Order refunds actions. | |
create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Create a single item. | |
get_collection_params ( ) : array | Get the query params for collections. | |
get_item_schema ( ) : array | Get the Order's schema, conforming to JSON Schema. | |
prepare_item_for_response ( WP_Post $post, WP_REST_Request $request ) : WP_REST_Response | Prepare a single order refund output for response. | |
query_args ( array $args, WP_REST_Request $request ) : array | Query args. | |
register_routes ( ) | Register the routes for order refunds. |
메소드 | 설명 | |
---|---|---|
prepare_links ( WC_Order_Refund $refund, WP_REST_Request $request ) : 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 get_collection_params ( ) : array | ||
리턴 | array |
public get_item_schema ( ) : array | ||
리턴 | array |
public prepare_item_for_response ( WP_Post $post, WP_REST_Request $request ) : WP_REST_Response | ||
$post | WP_Post | Post object. |
$request | WP_REST_Request | Request object. |
리턴 | WP_REST_Response | $data |
protected prepare_links ( WC_Order_Refund $refund, WP_REST_Request $request ) : array | ||
$refund | WC_Order_Refund | Comment object. |
$request | WP_REST_Request | Request object. |
리턴 | array | Links for the given order refund. |
public query_args ( array $args, WP_REST_Request $request ) : array | ||
$args | array | |
$request | WP_REST_Request | |
리턴 | array |