WooCommerce Code Reference

WC_Admin_Dashboard_Setup
in package

WC_Admin_Dashboard_Setup Class.

Table of Contents

$completed_tasks_count  : int
# of completed tasks.
$tasks  : array<string|int, mixed>
List of tasks.
__construct()  : mixed
WC_Admin_Dashboard_Setup constructor.
get_completed_tasks_count()  : mixed
Return # of completed tasks
get_tasks()  : array<string|int, mixed>
Getter for $tasks
render()  : mixed
Render meta box output.
get_next_task()  : array<string|int, mixed>|null
Get the next task.
populate_general_tasks()  : mixed
Populate tasks from the database.
populate_payment_tasks()  : mixed
Populate payment tasks's visibility and completion
should_display_widget()  : bool
Check to see if we should display the widget

Properties

$tasks

List of tasks.

private array<string|int, mixed> $tasks = array('store_details' => array('completed' => alse, 'button_link' => 'admin.php?page=wc-admin&path=%2Fsetup-wizard'), 'products' => array('completed' => alse, 'button_link' => 'admin.php?page=wc-admin&task=products'), 'woocommerce-payments' => array('completed' => alse, 'button_link' => 'admin.php?page=wc-admin&path=%2Fpayments%2Fconnect'), 'payments' => array('completed' => alse, 'button_link' => 'admin.php?page=wc-admin&task=payments'), 'tax' => array('completed' => alse, 'button_link' => 'admin.php?page=wc-admin&task=tax'), 'shipping' => array('completed' => alse, 'button_link' => 'admin.php?page=wc-admin&task=shipping'), 'appearance' => array('completed' => alse, 'button_link' => 'admin.php?page=wc-admin&task=appearance'))

Methods