woocommerce_webhook_delivery

ACTION woocommerce\includes\class-wc-webhook.php (ligne 362) github
Deliver the webhook payload using wp_safe_remote_request().

Paramètres

Entrée :
$http_args, $response, $duration, $arg, $this->get_id(
Sortie :
@param mixed $arg First hook argument.

Utilisation

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

function ma_fonction_personnalisee($http_args, $response, $duration, $arg, $this->get_id() {
    // Votre code ici
    error_log('Hook woocommerce_webhook_delivery déclenché');
}

Actualités

Chargement des actualités...