WooCommerce Code Reference

WC_Admin_Webhooks_Table_List extends WP_List_Table
in package

Webhooks table list class.

Table of Contents

__construct()  : mixed
Initialize the webhook table list.
column_cb()  : string
Column cb.
column_delivery_url()  : string
Return delivery URL column.
column_status()  : string
Return status column.
column_title()  : string
Return title column.
column_topic()  : string
Return topic column.
get_columns()  : array<string|int, mixed>
Get list columns.
get_legacy_api_webhooks_count()  : int
Get how many of the existing webhooks are configured to use the legacy payload format.
no_items()  : mixed
No items found text.
prepare_items()  : mixed
Prepare table list items.
process_bulk_action()  : mixed
Process bulk actions.
search_box()  : mixed
Search box.
display_tablenav()  : mixed
Generate the table navigation above or below the table.
get_bulk_actions()  : array<string|int, mixed>
Get bulk actions.
get_views()  : array<string|int, mixed>
Table list views.
get_status_label()  : array<string|int, mixed>
Get the status label for webhooks.
uses_legacy_rest_api()  : bool
Check if a given webhook is configured to use the legacy payload format.

Methods

get_legacy_api_webhooks_count()

Get how many of the existing webhooks are configured to use the legacy payload format.

public get_legacy_api_webhooks_count() : int
Tags
since
9.0.0
Return values
intCount of existing webhooks are configured to use the legacy payload format.

display_tablenav()

Generate the table navigation above or below the table.

protected display_tablenav(string $which) : mixed

Included to remove extra nonce input.

Parameters
$which : string

The location of the extra table nav markup: 'top' or 'bottom'.

Return values
mixed

get_status_label()

Get the status label for webhooks.

private get_status_label(string $status_name, int $amount) : array<string|int, mixed>
Parameters
$status_name : string

Status name.

$amount : int

Amount of webhooks.

Return values
array<string|int, mixed>