woocommerce_theme_installed
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.
Где вызывается хук
woocommerce_theme_installed
woocommerce/src/Admin/API/Themes.php 110
do_action( 'woocommerce_theme_installed', $theme );