MySLP_Customers_List_Table
extends WP_List_Table
in package
Define and display the customer lists here
Table of Contents
Properties
- $month_end : mixed
- $settings : mixed
- $total_accounts : mixed
- $total_payments : mixed
Methods
- __construct() : mixed
- Start me up.
- ajax_user_can() : bool
- column_cb() : string
- Add checkbox for multi select bulk action
- column_default() : string
- Set default column
- column_map_views() : string
- Map Views Column
- column_name() : string
- Add an actionable link under Name data for View and Delete
- column_payment() : string
- Payment Column
- column_plan() : string
- Plans Column
- column_status() : string
- Status column.
- column_subscription() : string
- The subscription column.
- get_bulk_actions() : array<string|int, mixed>
- Get Bulk Actions
- get_columns() : mixed
- Determine table column
- get_hidden_columns() : array<string|int, mixed>
- Get hidden columns. Blank for now
- get_sortable_columns() : array<string|int, mixed>
- Make our column sortable.
- no_items() : void
- Set message if table has no data
- prepare_items() : void
- Determine table column
- single_row() : mixed
- Generates content for a single row of the table
- display_tablenav() : void
- Display standard table footer nav AND our summary data.
- get_views() : array<string|int, mixed>
- pagination() : mixed
- align_plans() : mixed
- Set the User->plan to User->myslp_subscription_plan
- align_status() : mixed
- Set the account status blog option and user meta account status to match user meta.
- delete() : mixed
- Delete users (bulk action).
- get_data() : mixed
- Get data to populate our table
- get_location_count() : string
- Get the location account for this user.
- handle_bulk_actions() : mixed
- Handle bulk actions.
- send_bulk_email() : mixed
- Send email to the selected users.
- set_vars() : mixed
- Set variables that make this table do different things.
Properties
$month_end
private
mixed
$month_end
$settings
private
mixed
$settings
$total_accounts
private
mixed
$total_accounts
= 0
$total_payments
private
mixed
$total_payments
= 0
Methods
__construct()
Start me up.
public
__construct() : mixed
..
ajax_user_can()
public
ajax_user_can() : bool
Return values
boolcolumn_cb()
Add checkbox for multi select bulk action
public
column_cb(array<string|int, mixed> $item) : string
Parameters
- $item : array<string|int, mixed>
Return values
stringcolumn_default()
Set default column
public
column_default(mixed $item, mixed $column_name) : string
Parameters
- $item : mixed
- $column_name : mixed
Return values
stringcolumn_map_views()
Map Views Column
public
column_map_views(mixed $item) : string
Parameters
- $item : mixed
Return values
stringcolumn_name()
Add an actionable link under Name data for View and Delete
public
column_name(array<string|int, mixed> $item) : string
Parameters
- $item : array<string|int, mixed>
Return values
stringcolumn_payment()
Payment Column
public
column_payment(array<string|int, mixed> $item) : string
Parameters
- $item : array<string|int, mixed>
Return values
stringcolumn_plan()
Plans Column
public
column_plan(object $item) : string
Parameters
- $item : object
Return values
stringcolumn_status()
Status column.
public
column_status(mixed $item) : string
Parameters
- $item : mixed
Return values
stringcolumn_subscription()
The subscription column.
public
column_subscription(mixed $item) : string
Parameters
- $item : mixed
Return values
stringget_bulk_actions()
Get Bulk Actions
public
get_bulk_actions() : array<string|int, mixed>
Return values
array<string|int, mixed> —named array slug and text.
get_columns()
Determine table column
public
get_columns() : mixed
get_hidden_columns()
Get hidden columns. Blank for now
public
get_hidden_columns() : array<string|int, mixed>
Return values
array<string|int, mixed>get_sortable_columns()
Make our column sortable.
public
get_sortable_columns() : array<string|int, mixed>
Return values
array<string|int, mixed>no_items()
Set message if table has no data
public
no_items() : void
prepare_items()
Determine table column
public
prepare_items() : void
single_row()
Generates content for a single row of the table
public
single_row(object $item) : mixed
Parameters
- $item : object
-
The current item
display_tablenav()
Display standard table footer nav AND our summary data.
protected
display_tablenav(mixed $which) : void
Parameters
- $which : mixed
get_views()
protected
get_views() : array<string|int, mixed>
Return values
array<string|int, mixed>pagination()
protected
pagination(string $which) : mixed
Parameters
- $which : string
Tags
align_plans()
Set the User->plan to User->myslp_subscription_plan
private
align_plans() : mixed
align_status()
Set the account status blog option and user meta account status to match user meta.
private
align_status() : mixed
delete()
Delete users (bulk action).
private
delete() : mixed
get_data()
Get data to populate our table
private
get_data() : mixed
get_location_count()
Get the location account for this user.
private
get_location_count(string $user_id) : string
Parameters
- $user_id : string
Return values
stringhandle_bulk_actions()
Handle bulk actions.
private
handle_bulk_actions() : mixed
send_bulk_email()
Send email to the selected users.
private
send_bulk_email(string $action) : mixed
Parameters
- $action : string
set_vars()
Set variables that make this table do different things.
private
set_vars() : mixed