Deliver the webhook payload using wp_safe_remote_request().
$http_args, $response, $duration, $arg, $this->get_id(
Sortie :
@param mixed $arg First hook argument.
// 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é');
}
Chargement des actualités...