WC_Admin_Webhooks
in package
WC_Admin_Webhooks.
Table of Contents
- __construct() : mixed
- Initialize the webhooks admin actions.
- actions() : mixed
- Webhooks admin actions.
- allow_save_settings() : bool
- Check if should allow save settings.
- bulk_delete() : mixed
- Bulk delete.
- get_logs_navigation() : mixed
- Get the logs navigation.
- get_topic_data() : array<string|int, mixed>
- Get the webhook topic data.
- logs_output() : mixed
- Logs output.
- notices() : mixed
- Notices.
- page_output() : mixed
- Page output.
- screen_option() : mixed
- Add screen option.
- delete() : mixed
- Delete webhook.
- is_webhook_settings_page() : bool
- Check if is webhook settings page.
- maybe_display_legacy_rest_api_warning() : mixed
- Display a warning message if the Legacy REST API extension is not installed and there are webhooks configured to use the legacy payload format.
- save() : mixed
- Save method.
- table_list_output() : mixed
- Table list output.
Methods
__construct()
Initialize the webhooks admin actions.
public
__construct() : mixed
Return values
mixed —actions()
Webhooks 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 —bulk_delete()
Bulk delete.
public
static bulk_delete(array<string|int, mixed> $webhooks) : mixed
Parameters
- $webhooks : array<string|int, mixed>
-
List of webhooks IDs.
Return values
mixed —get_logs_navigation()
Get the logs navigation.
public
static get_logs_navigation(int $total, WC_Webhook $webhook) : mixed
Parameters
- $total : int
-
Deprecated.
- $webhook : WC_Webhook
-
Deprecated.
Tags
Return values
mixed —get_topic_data()
Get the webhook topic data.
public
static get_topic_data(WC_Webhook $webhook) : array<string|int, mixed>
Parameters
- $webhook : WC_Webhook
-
Webhook instance.
Return values
array<string|int, mixed> —logs_output()
Logs output.
public
static logs_output([WC_Webhook $webhook = 'deprecated' ]) : mixed
Parameters
- $webhook : WC_Webhook = 'deprecated'
-
Deprecated.
Tags
Return values
mixed —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 —delete()
Delete webhook.
private
delete() : mixed
Return values
mixed —is_webhook_settings_page()
Check if is webhook settings page.
private
is_webhook_settings_page() : bool
Return values
bool —maybe_display_legacy_rest_api_warning()
Display a warning message if the Legacy REST API extension is not installed and there are webhooks configured to use the legacy payload format.
private
static maybe_display_legacy_rest_api_warning() : mixed
Return values
mixed —save()
Save method.
private
save() : mixed
Return values
mixed —table_list_output()
Table list output.
private
static table_list_output() : mixed