프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. |
메소드 | 설명 | |
---|---|---|
batch_items_permissions_check ( WP_REST_Request $request ) : boolean | Check if a given request has access batch create, update and delete items. | |
create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Create a single customer. | |
create_item_permissions_check ( WP_REST_Request $request ) : boolean | Check if a given request has access create customers. | |
delete_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Delete a single customer. | |
delete_item_permissions_check ( WP_REST_Request $request ) : boolean | Check if a given request has access delete a customer. | |
get_collection_params ( ) : array | Get the query params for collections. | |
get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Get a single customer. | |
get_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check if a given request has access to read a customer. | |
get_item_schema ( ) : array | Get the Customer's schema, conforming to JSON Schema. | |
get_items ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Get all customers. | |
get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check whether a given request has permission to read customers. | |
prepare_item_for_response ( WP_User $user_data, WP_REST_Request $request ) : WP_REST_Response | Prepare a single customer output for response. | |
register_routes ( ) | Register the routes for customers. | |
update_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Update a single user. | |
update_item_permissions_check ( WP_REST_Request $request ) : boolean | Check if a given request has access update a customer. |
메소드 | 설명 | |
---|---|---|
get_role_names ( ) : array | Get role names. | |
prepare_links ( WP_User $customer ) : array | Prepare links for the request. | |
update_customer_meta_fields ( WC_Customer $customer, WP_REST_Request $request ) | Update customer meta fields. |
public batch_items_permissions_check ( WP_REST_Request $request ) : boolean | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | boolean |
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_Error | WP_REST_Response | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | WP_Error | WP_REST_Response |
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 ( 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_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_User $user_data, WP_REST_Request $request ) : WP_REST_Response | ||
$user_data | WP_User | User object. |
$request | WP_REST_Request | Request object. |
리턴 | WP_REST_Response | $response Response data. |
protected prepare_links ( WP_User $customer ) : array | ||
$customer | WP_User | Customer object. |
리턴 | array | Links for the given customer. |
protected update_customer_meta_fields ( WC_Customer $customer, WP_REST_Request $request ) | ||
$customer | WC_Customer | |
$request | WP_REST_Request |
public update_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 update_item_permissions_check ( WP_REST_Request $request ) : boolean | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | boolean |