Methods summary
public
|
|
public
|
#
prepare_items( )
Prepares the list of items for displaying
Prepares the list of items for displaying
|
public
|
#
views( )
Display the list of views available on this table
Display the list of views available on this table
|
protected
array
|
#
get_views( )
Get an associative array ( id => link ) with the list of views available on this table
Get an associative array ( id => link ) with the list of views available on this table
Returns
array
|
public
array
|
|
protected
string
|
#
column_cb( array $item )
Get the checkbox column content for the given item
Get the checkbox column content for the given item
Parameters
Returns
string
|
protected
string
|
#
column_name( array $item )
Get the name column content for the given item
Get the name column content for the given item
Parameters
Returns
string
|
protected
string
|
#
column_shortcode( array $item )
Get the shortcode column content for the given item
Get the shortcode column content for the given item
Parameters
Returns
string
|
protected
string
|
#
handle_row_actions( array $item, string $column_name, string $primary )
Generates and display row actions links for the list table
Generates and display row actions links for the list table
Parameters
- $item
- The item being acted upon
- $column_name
- Current column name
- $primary
- Primary column name
Returns
string The row actions HTML, or an empty string if the current column is not the primary column
|
protected
string
|
#
column_entries( array $item )
Get the entries column content for the given item
Get the entries column content for the given item
Parameters
Returns
string
|
protected
string
|
#
column_active( array $item )
Get the active column content for the given item
Get the active column content for the given item
Parameters
Returns
string
|
protected
string
|
#
column_updated_at( array $item )
Get the updated_at column content for the given item
Get the updated_at column content for the given item
Parameters
Returns
string
|
protected
array
|
#
get_sortable_columns( )
Get the list of sortable columns
Get the list of sortable columns
Returns
array
|
protected
array
|
#
get_bulk_actions( )
Get an associative array ( option_name => option_title ) with the list
of bulk actions available on this table
Get an associative array ( option_name => option_title ) with the list
of bulk actions available on this table
Returns
array
|
public
|
#
no_items( )
Message to be displayed when there are no forms
Message to be displayed when there are no forms
|
public
|
#
search_box( string $text, string $input_id )
Displays the search box
Duplicate of the parent function, but still shows the search box if there are no items
Parameters
- $text
- The 'submit' button label.
- $input_id
- ID attribute value for the search input field.
|
protected
string
|
#
getOrderBy( string $requestedOrderBy = '' )
Get the order by value
Gets the user meta setting if a value is saved
Parameters
- $requestedOrderBy
- The requested order by from $_GET
Returns
string
|
protected
string
|
#
getOrder( string $requestedOrder = '' )
Get the order value ('asc' or 'desc')
Get the order value ('asc' or 'desc')
Gets the user meta setting if a value is saved
Parameters
- $requestedOrder
- The requested order from $_GET
Returns
string
|