WooCommerce Code Reference

WC_Admin_List_Table_Orders extends WC_Admin_List_Table
in package

WC_Admin_List_Table_Orders Class.

Table of Contents

$list_table_type  : string
Post type.
$object  : object|null
Object being shown on the row.
__construct()  : mixed
Constructor.
add_custom_query_var()  : array
Query vars for custom searches.
bulk_admin_notices()  : mixed
Show confirmation message that order status changed for number of orders.
default_hidden_columns()  : array
Adjust which columns are displayed by default.
define_bulk_actions()  : array
Define bulk actions.
define_columns()  : array
Define which columns to show on this screen.
define_sortable_columns()  : array
Define which columns are sortable.
disable_view_mode()  : array
Removes this type from list of post types that support "View Mode" switching.
get_order_preview_actions_html()  : string
Get actions to display in the preview as HTML.
get_order_preview_item_html()  : string
Get items to display in the preview as HTML.
handle_bulk_actions()  : string
Handle bulk actions.
list_table_primary_column()  : string
Set list table primary column.
maybe_render_blank_state()  : mixed
Show blank slate.
order_preview_get_order_details()  : array
Get order details to send to the ajax endpoint for previews.
order_preview_template()  : mixed
Template for order preview.
render_columns()  : mixed
Render individual columns.
request_query()  : array
Handle any filters.
restrict_manage_posts()  : mixed
See if we should render search filters or not.
row_actions()  : array
Set row actions.
search_custom_fields()  : mixed
Search custom fields as well as content.
search_label()  : string
Change the label when searching orders.
define_hidden_columns()  : array
Define hidden columns.
get_primary_column()  : string
Define primary column.
get_row_actions()  : array
Get row actions to show in the list table.
prepare_row_data()  : mixed
Pre-fetch any data for the row each column has access to it. the_order global is there for bw compat.
query_filters()  : array
Handle any custom filters.
render_billing_address_column()  : mixed
Render columm: billing_address.
render_blank_state()  : mixed
Render blank state.
render_filters()  : mixed
Render any custom filters and search inputs for the list table.
render_order_date_column()  : mixed
Render columm: order_date.
render_order_number_column()  : mixed
Render columm: order_number.
render_order_status_column()  : mixed
Render columm: order_status.
render_order_total_column()  : mixed
Render columm: order_total.
render_shipping_address_column()  : mixed
Render columm: shipping_address.
render_wc_actions_column()  : mixed
Render columm: wc_actions.

Properties

Methods

disable_view_mode()

Removes this type from list of post types that support "View Mode" switching.

public disable_view_mode(array $post_types) : array

View mode is seen on posts where you can switch between list or excerpt. Our post types don't support it, so we want to hide the useless UI from the screen options tab.

Parameters
$post_types : array

Array of post types supporting view mode.

Return values
arrayArray of post types supporting view mode, without this type.

handle_bulk_actions()

Handle bulk actions.

public handle_bulk_actions(string $redirect_to, string $action, array $ids) : string
Parameters
$redirect_to : string

URL to redirect to.

$action : string

Action name.

$ids : array

List of ids.

Return values
string