WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::reset_extended_task_list() public WC 1.0

Reset the extended task list and redirect to the dashboard.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Onboarding::reset_extended_task_list();

Code of Onboarding::reset_extended_task_list() WC 5.3.0

<?php
public static function reset_extended_task_list() {
	if (
		! Loader::is_admin_page() ||
		! isset( $_GET['reset_extended_task_list'] ) // phpcs:ignore CSRF ok.
	) {
		return;
	}

	$extended_task_list_hidden = 1 === absint( $_GET['reset_extended_task_list'] ) ? 'no' : 'yes'; // phpcs:ignore CSRF ok.
	update_option( 'woocommerce_extended_task_list_hidden', $extended_task_list_hidden );

	wc_admin_record_tracks_event(
		'extended_tasklist_toggled',
		array(
			'status' => 'yes' === $extended_task_list_hidden ? 'disabled' : 'enabled',
		)
	);
	wp_safe_redirect( wc_admin_url() );
	exit;
}