Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingThemes::init()public staticWC 1.0

Init.

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

Хуков нет.

Возвращает

null. Ничего.

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

$result = OnboardingThemes::init();

Код OnboardingThemes::init() WC 6.6.1

public static function init() {
	add_action( 'woocommerce_theme_installed', array( __CLASS__, 'delete_themes_transient' ) );
	add_action( 'after_switch_theme', array( __CLASS__, 'delete_themes_transient' ) );
	add_filter( 'woocommerce_rest_prepare_themes', array( __CLASS__, 'add_uploaded_theme_data' ) );
	add_filter( 'woocommerce_admin_onboarding_preloaded_data', array( __CLASS__, 'preload_data' ) );
}