Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

CustomizeStore::__constructpublicWC 1.0

Constructor

Method of the class: CustomizeStore{}

No Hooks.

Returns

null. Nothing (null).

Usage

$CustomizeStore = new CustomizeStore();
$CustomizeStore->__construct( $task_list );
$task_list(TaskList) (required)
Parent task list.

CustomizeStore::__construct() code WC 10.6.2

public function __construct( $task_list ) {
	parent::__construct( $task_list );

	add_action( 'save_post_wp_global_styles', array( $this, 'mark_task_as_complete_block_theme' ), 10, 3 );
	add_action( 'save_post_wp_template', array( $this, 'mark_task_as_complete_block_theme' ), 10, 3 );
	add_action( 'save_post_wp_template_part', array( $this, 'mark_task_as_complete_block_theme' ), 10, 3 );
	add_action( 'customize_save_after', array( $this, 'mark_task_as_complete_classic_theme' ) );
}