Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
Shipping::__construct()
Constructor
Метод класса: Shipping{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Shipping = new Shipping(); $Shipping->__construct( $task_list );
- $task_list(TaskList)
- Parent task list.
По умолчанию: null
Код Shipping::__construct() Shipping:: construct WC 9.2.3
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 ); add_action( 'woocommerce_shipping_zone_method_added', array( __CLASS__, 'delete_zone_count_transient' ), 9 ); add_action( 'woocommerce_after_shipping_zone_object_save', array( __CLASS__, 'delete_zone_count_transient' ), 9 ); }