Plugin Directory


Ignore:
Timestamp:
10/26/2026 05:43:19 PM (3 days ago)
Author:
noblestrategies
Message:

Release 1.0.4: review request after 5 sends, webhook_buttons_sent action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • webhook-buttons/trunk/includes/classes/Button.php

    r3766615 r3767004  
    9999                $order->add_order_note( (string) apply_filters( 'webhook_buttons_order_note', $note, $data, $context ) );
    100100
     101                if ( $success ) {
     102                        /** A send succeeded (HTTP 2xx). Receives the button, the order and the compiled payload. */
     103                        do_action( 'webhook_buttons_sent', $this, $order, $data );
     104                }
    101105                if ( ! $success && defined( 'WP_DEBUG' ) && WP_DEBUG ) {
    102106                        error_log( 'Webhook Buttons: ' . $payload->get_log_detail() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
Note: See TracChangeset for help on using the changeset viewer.