WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

OnboardingTasks::__construct() public WC 1.0

Constructor

{} It's a method of the class: OnboardingTasks{}

No Hooks.

Return

null. Nothing.

Usage

$OnboardingTasks = new OnboardingTasks();
$OnboardingTasks->__construct();

Code of OnboardingTasks::__construct() WC 5.3.0

<?php
public function __construct() {
	// This hook needs to run when options are updated via REST.
	add_action( 'add_option_woocommerce_task_list_complete', array( $this, 'track_completion' ), 10, 2 );
	add_action( 'add_option_woocommerce_extended_task_list_complete', array( $this, 'track_extended_completion' ), 10, 2 );
	add_action( 'add_option_woocommerce_task_list_tracked_completed_tasks', array( $this, 'track_task_completion' ), 10, 2 );
	add_action( 'update_option_woocommerce_task_list_tracked_completed_tasks', array( $this, 'track_task_completion' ), 10, 2 );
	add_action( 'admin_enqueue_scripts', array( $this, 'update_option_extended_task_list' ), 15 );

	if ( ! is_admin() ) {
		return;
	}

	add_action( 'admin_enqueue_scripts', array( $this, 'add_media_scripts' ) );
	// Old settings injection.
	// Run after Onboarding.
	add_filter( 'woocommerce_components_settings', array( __CLASS__, 'component_settings' ), 30 );
	// New settings injection.
	add_filter( 'woocommerce_shared_settings', array( $this, 'component_settings' ), 30 );

	add_action( 'admin_init', array( $this, 'set_active_task' ), 5 );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_product_notice_admin_script' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_homepage_notice_admin_script' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_tax_notice_admin_script' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_product_import_notice_admin_script' ) );
	add_filter( 'woocommerce_paypal_payments_onboarding_redirect_url', array( $this, 'ppcp_ob_after_onboarding_redirect_url' ) );
}