Automattic\WooCommerce\Admin\Features\OnboardingTasks
TaskLists::init_default_lists() │ public static │ WC 1.0
Initialize default lists.
{} It's a method of the class: TaskLists{}
No Hooks.
Return
null
. Nothing.
Usage
$result = TaskLists::init_default_lists();
Code of TaskLists::init_default_lists() TaskLists::init default lists WC 6.6.1
public static function init_default_lists() { self::add_list( array( 'id' => 'setup', 'title' => __( 'Get ready to start selling', 'woocommerce' ), 'tasks' => array( 'StoreDetails', 'Purchase', 'Products', 'WooCommercePayments', 'Payments', 'Tax', 'Shipping', 'Marketing', 'Appearance', ), 'event_prefix' => 'tasklist_', 'visible' => ! self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_1' ) && ! self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_2' ), ) ); self::add_list( array( 'id' => 'setup_experiment_1', 'hidden_id' => 'setup', 'title' => __( 'Get ready to start selling', 'woocommerce' ), 'tasks' => array( 'StoreDetails', 'Products', 'WooCommercePayments', 'Payments', 'Tax', 'Shipping', 'Marketing', 'Appearance', ), 'display_progress_header' => true, 'event_prefix' => 'tasklist_', 'options' => array( 'use_completed_title' => true, ), 'visible' => self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_1' ), ) ); self::add_list( array( 'id' => 'setup_experiment_2', 'hidden_id' => 'setup', 'title' => __( 'Get ready to start selling', 'woocommerce' ), 'tasks' => array( 'StoreCreation', 'StoreDetails', 'Products', 'WooCommercePayments', 'Payments', 'Tax', 'Shipping', 'Marketing', 'Appearance', ), 'event_prefix' => 'tasklist_', 'visible' => self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_2' ) && ! self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_1' ), 'options' => array( 'use_completed_title' => true, ), 'display_progress_header' => true, 'sections' => array( array( 'id' => 'basics', 'title' => __( 'Cover the basics', 'woocommerce' ), 'description' => __( 'Make sure you’ve got everything you need to start selling—from business details to products.', 'woocommerce' ), 'image' => plugins_url( '/assets/images/task_list/basics-section-illustration.png', WC_ADMIN_PLUGIN_FILE ), 'task_names' => array( 'StoreCreation', 'StoreDetails', 'Products', 'Payments', 'WooCommercePayments' ), ), array( 'id' => 'sales', 'title' => __( 'Get ready to sell', 'woocommerce' ), 'description' => __( 'Easily set up the backbone of your store’s operations and get ready to accept first orders.', 'woocommerce' ), 'image' => plugins_url( '/assets/images/task_list/sales-section-illustration.png', WC_ADMIN_PLUGIN_FILE ), 'task_names' => array( 'Shipping', 'Tax' ), ), array( 'id' => 'expand', 'title' => __( 'Customize & expand', 'woocommerce' ), 'description' => __( 'Personalize your store’s design and grow your business by enabling new sales channels.', 'woocommerce' ), 'image' => plugins_url( '/assets/images/task_list/expand-section-illustration.png', WC_ADMIN_PLUGIN_FILE ), 'task_names' => array( 'Appearance', 'Marketing' ), ), ), ) ); self::add_list( array( 'id' => 'extended', 'title' => __( 'Things to do next', 'woocommerce' ), 'sort_by' => array( array( 'key' => 'is_complete', 'order' => 'asc', ), array( 'key' => 'level', 'order' => 'asc', ), ), 'tasks' => array( 'AdditionalPayments', ), ) ); self::add_list( array( 'id' => 'setup_two_column', 'hidden_id' => 'setup', 'title' => __( 'Get ready to start selling', 'woocommerce' ), 'tasks' => array( 'Products', 'WooCommercePayments', 'Payments', 'Tax', 'Shipping', 'Marketing', 'Appearance', ), 'event_prefix' => 'tasklist_', ) ); self::add_list( array( 'id' => 'extended_two_column', 'hidden_id' => 'extended', 'title' => __( 'Things to do next', 'woocommerce' ), 'sort_by' => array( array( 'key' => 'is_complete', 'order' => 'asc', ), array( 'key' => 'level', 'order' => 'asc', ), ), 'tasks' => array( 'AdditionalPayments', ), 'event_prefix' => 'extended_tasklist_', ) ); }