woocommerce_log_clear

ACTION woocommerce\includes\log-handlers\class-wc-log-handler-file.php (ligne 242) github
$this->open( $handle, 'w' ) == Open the file for writing only. Place the file pointer at the beginning of the file, and truncate the file to zero length.

Paramètres

Entrée :
$handle
Sortie :
N/A

Utilisation

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

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

Actualités

Chargement des actualités...