woocommerce_theme_installed

woocommerce_theme_installed

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_theme_installed') is found 1 times:

  • /src/Admin/API/Themes.php line 110
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
         * Fires when a theme is successfully installed.
         *
         * @param string $theme The theme name.
         */
        do_action( 'woocommerce_theme_installed', $theme );
    } else {
        if ( is_wp_error( $install ) && $install->get_error_code() ) {
            $error_message = isset( $upgrader->strings[ $install->get_error_code() ] ) ? $upgrader->strings[ $install->get_error_code() ] : $install->get_error_data();
        } else {
            $error_message = $upgrader->strings['process_failed'];
        }

See this hook used in plugins: