PHP Класс WC_REST_System_Status_Controller

Наследование: extends WC_REST_Controller
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$namespace string Endpoint namespace.
$rest_base string Route base.

Открытые методы

Метод Описание
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

Описание методов

get_active_plugins() публичный Метод

Get a list of plugins active on the site.
public get_active_plugins ( ) : array
Результат array

get_collection_params() публичный Метод

Get any query params needed.
public get_collection_params ( ) : array
Результат array

get_database_info() публичный Метод

Get array of database information. Version, prefix, and table existence.
public get_database_info ( ) : array
Результат array

get_environment_info() публичный Метод

Get array of environment information. Includes thing like software versions, and various server settings.
public get_environment_info ( ) : array
Результат array

get_item_mappings() публичный Метод

Return an array of sections and the data associated with each.
public get_item_mappings ( ) : array
Результат array

get_item_schema() публичный Метод

Get the system status schema, conforming to JSON Schema.
public get_item_schema ( ) : array
Результат array

get_items() публичный Метод

Get a system status info, by section.
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

get_items_permissions_check() публичный Метод

Check whether a given request has permission to view system status.
public get_items_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean
$request WP_REST_Request Full details about the request.
Результат WP_Error | boolean

get_pages() публичный Метод

Returns a mini-report on WC pages and if they are configured correctly: Present, visible, and including the correct shortcode.
public get_pages ( ) : array
Результат array

get_security_info() публичный Метод

Returns security tips.
public get_security_info ( ) : array
Результат array

get_settings() публичный Метод

Get some setting values for the site that are useful for debugging purposes. For full settings access, use the settings api.
public get_settings ( ) : array
Результат array

get_theme_info() публичный Метод

Get info on the current active theme, info on parent theme (if presnet) and a list of template overrides.
public get_theme_info ( ) : array
Результат array

register_routes() публичный Метод

Register the route for /system_status
public register_routes ( )

Описание свойств

$namespace защищенное свойство

Endpoint namespace.
protected string $namespace
Результат string

$rest_base защищенное свойство

Route base.
protected string $rest_base
Результат string