PHP Class WC_Admin_Webhooks_Table_List

Inheritance: extends WP_List_Table
Show file Open project: woocommerce/woocommerce Class Usage Examples

Public Methods

Method Description
__construct ( ) Initialize the webhook table list.
column_cb ( WC_Post $webhook ) : string Column cb.
column_delivery_url ( object $webhook ) : string Return delivery URL column.
column_status ( object $webhook ) : string Return status column.
column_title ( object $webhook ) : string Return title column.
column_topic ( object $webhook ) : string Return topic column.
get_columns ( ) : array Get list columns.
prepare_items ( ) Prepare table list items.

Protected Methods

Method Description
extra_tablenav ( string $which ) Extra controls to be displayed between bulk actions and pagination.
get_bulk_actions ( ) : array Get bulk actions.
get_views ( ) : array Table list views.

Private Methods

Method Description
get_status_label ( string $status_name, stdClass $status ) : array Get the status label for webhooks.
get_webbook_object ( object $webhook ) : WC_Webhook Get Webhook object.

Method Details

__construct() public method

Initialize the webhook table list.
public __construct ( )

column_cb() public method

Column cb.
public column_cb ( WC_Post $webhook ) : string
$webhook WC_Post
return string

column_delivery_url() public method

Return delivery URL column.
public column_delivery_url ( object $webhook ) : string
$webhook object
return string

column_status() public method

Return status column.
public column_status ( object $webhook ) : string
$webhook object
return string

column_title() public method

Return title column.
public column_title ( object $webhook ) : string
$webhook object
return string

column_topic() public method

Return topic column.
public column_topic ( object $webhook ) : string
$webhook object
return string

extra_tablenav() protected method

Extra controls to be displayed between bulk actions and pagination.
protected extra_tablenav ( string $which )
$which string

get_bulk_actions() protected method

Get bulk actions.
protected get_bulk_actions ( ) : array
return array

get_columns() public method

Get list columns.
public get_columns ( ) : array
return array

get_views() protected method

Table list views.
protected get_views ( ) : array
return array

prepare_items() public method

Prepare table list items.
public prepare_items ( )