woocommerce_note_created

ACTION woocommerce\src\Admin\Notes\DataStore.php (ligne 58) github
Fires when an admin note is created.

Paramètres

Entrée :
$note_id
Sortie :
@param int $note_id Note ID.

Utilisation

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

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

Actualités

Chargement des actualités...