WC_Admin_API_Keys
in package
WC_Admin_API_Keys.
Table of Contents
- __construct() : mixed
- Initialize the API Keys admin actions.
- actions() : mixed
- API Keys admin actions.
- allow_save_settings() : bool
- Check if should allow save settings.
- notices() : mixed
- Notices.
- page_output() : mixed
- Page output.
- screen_option() : mixed
- Add screen option.
- bulk_actions() : mixed
- Bulk actions.
- bulk_revoke_key() : mixed
- Bulk revoke key.
- get_key_data() : array<string|int, mixed>
- Get key data.
- is_api_keys_settings_page() : bool
- Check if is API Keys settings page.
- remove_key() : bool
- Remove key.
- revoke_key() : mixed
- Revoke key.
- table_list_output() : mixed
- Table list output.
Methods
__construct()
Initialize the API Keys admin actions.
public
__construct() : mixed
Return values
mixed —actions()
API Keys admin actions.
public
actions() : mixed
Return values
mixed —allow_save_settings()
Check if should allow save settings.
public
allow_save_settings(bool $allow) : bool
This prevents "Your settings have been saved." notices on the table list.
Parameters
- $allow : bool
-
If allow save settings.
Return values
bool —notices()
Notices.
public
static notices() : mixed
Return values
mixed —page_output()
Page output.
public
static page_output() : mixed
Return values
mixed —screen_option()
Add screen option.
public
screen_option() : mixed
Return values
mixed —bulk_actions()
Bulk actions.
private
bulk_actions() : mixed
Return values
mixed —bulk_revoke_key()
Bulk revoke key.
private
bulk_revoke_key(array<string|int, mixed> $keys) : mixed
Parameters
- $keys : array<string|int, mixed>
-
API Keys.
Return values
mixed —get_key_data()
Get key data.
private
static get_key_data(int $key_id) : array<string|int, mixed>
Parameters
- $key_id : int
-
API Key ID.
Return values
array<string|int, mixed> —is_api_keys_settings_page()
Check if is API Keys settings page.
private
is_api_keys_settings_page() : bool
Return values
bool —remove_key()
Remove key.
private
remove_key(int $key_id) : bool
Parameters
- $key_id : int
-
API Key ID.
Return values
bool —revoke_key()
Revoke key.
private
revoke_key() : mixed
Return values
mixed —table_list_output()
Table list output.
private
static table_list_output() : mixed