Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Shipping::__construct()publicWC 1.0

Constructor

Method of the class: Shipping{}

No Hooks.

Return

null. Nothing.

Usage

$Shipping = new Shipping();
$Shipping->__construct( $task_list );
$task_list(TaskList)
Parent task list.
Default: null

Shipping::__construct() code WC 7.1.1

public function __construct( $task_list = null ) {
	parent::__construct( $task_list );
	// wp_ajax_woocommerce_shipping_zone_methods_save_changes
	// and wp_ajax_woocommerce_shipping_zones_save_changes get fired
	// when a new zone is added or an existing one has been changed.
	add_action( 'wp_ajax_woocommerce_shipping_zones_save_changes', array( __CLASS__, 'delete_zone_count_transient' ), 9 );
	add_action( 'wp_ajax_woocommerce_shipping_zone_methods_save_changes', array( __CLASS__, 'delete_zone_count_transient' ), 9 );
}