프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. |
메소드 | 설명 | |
---|---|---|
execute_tool ( string $tool ) : array | Actually executes a a tool. | |
get_collection_params ( ) : array | Get any query params needed. | |
get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Return a single tool. | |
get_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check whether a given request has permission to view a specific system status tool. | |
get_item_schema ( ) : array | Get the system status tools schema, conforming to JSON Schema. | |
get_items ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Get a list of system status tools. | |
get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check whether a given request has permission to view system status tools. | |
get_tools ( ) : array | A list of avaiable tools for use in the system status section. | |
prepare_item_for_response ( array $item, WP_REST_Request $request ) : WP_REST_Response | Prepare a tool item for serialization. | |
register_routes ( ) | Register the routes for /system_status/tools/*. | |
update_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Update (execute) a tool. | |
update_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check whether a given request has permission to execute a specific system status tool. |
메소드 | 설명 | |
---|---|---|
prepare_links ( string $id ) : array | Prepare links for the request. |
public execute_tool ( string $tool ) : array | ||
$tool | string | |
리턴 | array |
public get_collection_params ( ) : array | ||
리턴 | array |
public get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_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 ( array $item, WP_REST_Request $request ) : WP_REST_Response | ||
$item | array | Object. |
$request | WP_REST_Request | Request object. |
리턴 | WP_REST_Response | $response Response data. |
protected prepare_links ( string $id ) : array | ||
$id | string | |
리턴 | array |
public update_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_Request | |
리턴 | WP_Error | WP_REST_Response |
public update_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | WP_Error | boolean |