Свойство | Type | Description | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. |
Méthode | Description | |
---|---|---|
get_active_plugins ( ) : array | Get a list of plugins active on the site. | |
get_collection_params ( ) : array | Get any query params needed. | |
get_database_info ( ) : array | Get array of database information. Version, prefix, and table existence. | |
get_environment_info ( ) : array | Get array of environment information. Includes thing like software versions, and various server settings. | |
get_item_mappings ( ) : array | Return an array of sections and the data associated with each. | |
get_item_schema ( ) : array | Get the system status schema, conforming to JSON Schema. | |
get_items ( WP_REST_Request $request ) : WP_Error | WP_REST_Response | Get a system status info, by section. | |
get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | Check whether a given request has permission to view system status. | |
get_pages ( ) : array | Returns a mini-report on WC pages and if they are configured correctly: Present, visible, and including the correct shortcode. | |
get_security_info ( ) : array | Returns security tips. | |
get_settings ( ) : array | Get some setting values for the site that are useful for debugging purposes. For full settings access, use the settings api. | |
get_theme_info ( ) : array | Get info on the current active theme, info on parent theme (if presnet) and a list of template overrides. | |
register_routes ( ) | Register the route for /system_status |
public get_active_plugins ( ) : array | ||
Résultat | array |
public get_collection_params ( ) : array | ||
Résultat | array |
public get_database_info ( ) : array | ||
Résultat | array |
public get_environment_info ( ) : array | ||
Résultat | array |
public get_item_mappings ( ) : array | ||
Résultat | array |
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 get_security_info ( ) : array | ||
Résultat | array |
public get_settings ( ) : array | ||
Résultat | array |
public get_theme_info ( ) : array | ||
Résultat | array |