woocommerce_theme_installed

ACTION woocommerce\src\Admin\API\Themes.php (ligne 110) github
Fires when a theme is successfully installed.

Paramètres

Entrée :
$theme
Sortie :
@param string $theme The theme name.

Utilisation

// Ajouter une fonction au hook action 'woocommerce_theme_installed'
add_action('woocommerce_theme_installed', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($theme) {
    // Votre code ici
    error_log('Hook woocommerce_theme_installed déclenché');
}

Actualités

Chargement des actualités...