Automattic\WooCommerce\Admin\Features\OnboardingTasks

DeprecatedOptions::init()public staticWC 1.0

Initialize.

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

No Hooks.

Return

null. Nothing.

Usage

$result = DeprecatedOptions::init();

Code of DeprecatedOptions::init() WC 6.6.1

public static function init() {
	add_filter( 'pre_option_woocommerce_task_list_hidden', array( __CLASS__, 'get_deprecated_options' ), 10, 2 );
	add_filter( 'pre_option_woocommerce_extended_task_list_hidden', array( __CLASS__, 'get_deprecated_options' ), 10, 2 );
	add_action( 'pre_update_option_woocommerce_task_list_hidden', array( __CLASS__, 'update_deprecated_options' ), 10, 3 );
	add_action( 'pre_update_option_woocommerce_extended_task_list_hidden', array( __CLASS__, 'update_deprecated_options' ), 10, 3 );
}