WooCommerce Code Reference

WC_Admin_Log_Table_List extends WP_List_Table
in package

Table of Contents

PER_PAGE_USER_OPTION_KEY  = 'woocommerce_status_log_items_per_page'
The key for the user option of how many list table items to display per page.
__construct()  : mixed
Initialize the log table list.
column_cb()  : string
Column cb.
column_context()  : string
Context column.
column_level()  : string
Level column.
column_message()  : string
Message column.
column_source()  : string
Source column.
column_timestamp()  : string
Timestamp column.
display_rows()  : void
Generates the table rows.
get_columns()  : array<string|int, mixed>
Get list columns.
get_per_page_default()  : int
Helper to get the default value for the per_page arg.
level_dropdown()  : mixed
Display level dropdown
prepare_items()  : mixed
Prepare table list items.
context_row()  : void
Render the additional table row that contains extra log context data.
extra_tablenav()  : mixed
Extra controls to be displayed between bulk actions and pagination.
get_bulk_actions()  : array<string|int, mixed>
Get bulk actions.
get_items_query_limit()  : string
Get prepared LIMIT clause for items query
get_items_query_offset()  : string
Get prepared OFFSET clause for items query
get_items_query_order()  : string
Get prepared ORDER BY clause for items query
get_items_query_where()  : string
Get prepared WHERE clause for items query
get_sortable_columns()  : array<string|int, mixed>
Get a list of sortable columns.
prepare_column_headers()  : mixed
Set _column_headers property for table list
source_dropdown()  : mixed
Display source dropdown

Constants

PER_PAGE_USER_OPTION_KEY

The key for the user option of how many list table items to display per page.

public mixed PER_PAGE_USER_OPTION_KEY = 'woocommerce_status_log_items_per_page'
Tags
const

string

Methods

context_row()

Render the additional table row that contains extra log context data.

protected context_row(array<string|int, mixed> $log) : void
Parameters
$log : array<string|int, mixed>

Log entry data.

Return values
void

extra_tablenav()

Extra controls to be displayed between bulk actions and pagination.

protected extra_tablenav(string $which) : mixed
Parameters
$which : string
Return values
mixed

get_items_query_limit()

Get prepared LIMIT clause for items query

protected get_items_query_limit() : string
Tags
global

wpdb $wpdb

Return values
stringPrepared LIMIT clause for items query.

get_items_query_offset()

Get prepared OFFSET clause for items query

protected get_items_query_offset() : string
Tags
global

wpdb $wpdb

Return values
stringPrepared OFFSET clause for items query.

get_items_query_where()

Get prepared WHERE clause for items query

protected get_items_query_where() : string
Tags
global

wpdb $wpdb

Return values
stringPrepared WHERE clause for items query.