woocommerce_log_remove

ACTION woocommerce\includes\log-handlers\class-wc-log-handler-file.php (ligne 266) github
Remove/delete the chosen file.

Paramètres

Entrée :
$handle, $removed
Sortie :
@param string $handle Log handle.
@return bool

Utilisation

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

function ma_fonction_personnalisee($handle, $removed) {
    // Votre code ici
    error_log('Hook woocommerce_log_remove déclenché');
}

Actualités

Chargement des actualités...