woocommerce_theme_installed хук-событиеWC 1.0

Fires when a theme is successfully installed.

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

add_action( 'woocommerce_theme_installed', 'wp_kama_woocommerce_theme_installed_action' );

/**
 * Function for `woocommerce_theme_installed` action-hook.
 * 
 * @param string $theme The theme name.
 *
 * @return void
 */
function wp_kama_woocommerce_theme_installed_action( $theme ){

	// action...
}
$theme(строка)
The theme name.

Где вызывается хук

Themes::upload_theme()
woocommerce_theme_installed
woocommerce/src/Admin/API/Themes.php 110
do_action( 'woocommerce_theme_installed', $theme );

Где используется хук в WooCommerce

woocommerce/src/Internal/Admin/Onboarding/OnboardingThemes.php 30
add_action( 'woocommerce_theme_installed', array( __CLASS__, 'delete_themes_transient' ) );