Свойство | Type | Description | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. |
Méthode | Description | |
---|---|---|
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. |
Méthode | Description | |
---|---|---|
prepare_links ( string $id ) : array | Prepare links for the request. |
public execute_tool ( string $tool ) : array | ||
$tool | string | |
Résultat | array |
public get_collection_params ( ) : array | ||
Résultat | array |
public get_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_Request | |
Résultat | 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. |
Résultat | WP_Error | boolean |
public get_item_schema ( ) : array | ||
Résultat | array |
public get_items ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_Request | Full details about the request. |
Résultat | 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. |
Résultat | 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. |
Résultat | WP_REST_Response | $response Response data. |
protected prepare_links ( string $id ) : array | ||
$id | string | |
Résultat | array |
public register_routes ( ) |
public update_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | ||
$request | WP_REST_Request | |
Résultat | 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. |
Résultat | WP_Error | boolean |