WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\Features

OnboardingTasks::__construct() public WC 1.0

Constructor

{} Это метод класса: OnboardingTasks{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$OnboardingTasks = new OnboardingTasks();
$OnboardingTasks->__construct();

Код OnboardingTasks::__construct() WC 4.7.0

<?php
public function __construct() {
	// This hook needs to run when options are updated via REST.
	add_action( 'add_option_woocommerce_task_list_complete', array( $this, 'track_completion' ), 10, 2 );
	add_action( 'add_option_woocommerce_task_list_tracked_completed_tasks', array( $this, 'track_task_completion' ), 10, 2 );
	add_action( 'update_option_woocommerce_task_list_tracked_completed_tasks', array( $this, 'track_task_completion' ), 10, 2 );

	if ( ! is_admin() ) {
		return;
	}

	add_action( 'admin_enqueue_scripts', array( $this, 'add_media_scripts' ) );
	// Old settings injection.
	// Run after Onboarding.
	add_filter( 'woocommerce_components_settings', array( __CLASS__, 'component_settings' ), 30 );
	// New settings injection.
	add_filter( 'woocommerce_shared_settings', array( $this, 'component_settings' ), 30 );

	add_action( 'admin_init', array( $this, 'set_active_task' ), 5 );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_product_notice_admin_script' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_homepage_notice_admin_script' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_tax_notice_admin_script' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'add_onboarding_product_import_notice_admin_script' ) );
}