WooCommerce Code Reference

Search results

WC_Admin_Webhooks

WC_Admin_Webhooks.

Table of Contents

__construct() Initialize the webhooks admin actions. mixed
allow_save_settings() Check if should allow save settings. bool
is_webhook_settings_page() Check if is webhook settings page. bool
save() Save method. mixed
bulk_delete() Bulk delete. mixed
delete() Delete webhook. mixed
actions() Webhooks admin actions. mixed
page_output() Page output. mixed
notices() Notices. mixed
screen_option() Add screen option. mixed
table_list_output() Table list output. mixed
logs_output() Logs output. mixed
get_topic_data() Get the webhook topic data. array
get_logs_navigation() Get the logs navigation. mixed

Methods

__construct()

Initialize the webhooks admin actions.

public __construct( ) : mixed
Return values
mixed

allow_save_settings()

Check if should allow save settings.

public allow_save_settings( $allow : bool ) : bool

This prevents "Your settings have been saved." notices on the table list.

Parameters
$allow : bool

If allow save settings.

Return values
bool

is_webhook_settings_page()

Check if is webhook settings page.

private is_webhook_settings_page( ) : bool
Return values
bool

bulk_delete()

Bulk delete.

public static bulk_delete( $webhooks : array ) : mixed
Parameters
$webhooks : array

List of webhooks IDs.

Return values
mixed

table_list_output()

Table list output.

private static table_list_output( ) : mixed
Return values
mixed

logs_output()

Logs output.

public static logs_output( [ $webhook : WC_Webhook = 'deprecated' ] ) : mixed
Parameters
$webhook : WC_Webhook = 'deprecated'

Deprecated.

Tags
deprecated
Return values
mixed

get_logs_navigation()

Get the logs navigation.

public static get_logs_navigation( $total : int , $webhook : WC_Webhook ) : mixed
Parameters
$total : int

Deprecated.

$webhook : WC_Webhook

Deprecated.

Tags
deprecated
Return values
mixed
Back to the top