Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingThemes::init()public staticWC 1.0

Init.

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

No Hooks.

Return

null. Nothing.

Usage

$result = OnboardingThemes::init();

Code of OnboardingThemes::init() WC 7.1.0

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' ) );
}