woocommerce_tracker_send_event

ACTION woocommerce\includes\class-woocommerce.php (ligne 1443) github
Wrapper for the `woocommerce_tracker_send_event` action. This prevents the event failing when the class is not loaded. It loads the class if it exists, and then calls the actual action.

Paramètres

Entrée :
N/A
Sortie :
@return void

Utilisation

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

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

Actualités

Chargement des actualités...