WooCommerce Code Reference

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

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

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