Plugin Directory

Changeset 3767004


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

Location:
webhook-buttons
Files:
286 added
3 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
  • webhook-buttons/trunk/readme.txt

    r3766745 r3767004  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    133133== Changelog ==
    134134
     135= 1.0.4 =
     136* One review request after your store has sent 5 orders. Dismiss it for good or snooze it for 30 days.
     137* New action for developers: `webhook_buttons_sent` fires after every successful send.
     138
    135139= 1.0.3 =
    136140* Cleaner Upgrade page: one Pro card with a site-count picker, yearly prices.
  • webhook-buttons/trunk/webhook-buttons.php

    r3766745 r3767004  
    77Author: Noble Strategies
    88Author URI: https://noblestrategies.dev
    9 Version: 1.0.3
     9Version: 1.0.4
    1010Requires at least: 6.5
    1111Requires PHP: 7.4
    … …  
    2727}
    2828
    29 define( 'WEBHOOK_BUTTONS_VERSION', '1.0.3' );
     29define( 'WEBHOOK_BUTTONS_VERSION', '1.0.4' );
    3030define( 'WEBHOOK_BUTTONS_PLUGIN_FILE', __FILE__ );
    3131define( 'WEBHOOK_BUTTONS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    … …  
    4646        delete_option( 'webhook_buttons_settings' );
    4747        delete_option( 'webhook_buttons_db_version' );
     48        delete_option( 'webhook_buttons_review' );
    4849    }
    4950}
    … …  
    7677
    7778    // One class per file.
    78     foreach ( [ 'License', 'Main', 'Settings', 'Endpoints', 'Upgrades', 'PostEdit', 'MetaBox', 'Button', 'OrderPayload' ] as $class ) {
     79    foreach ( [ 'License', 'Main', 'Settings', 'Endpoints', 'Upgrades', 'PostEdit', 'MetaBox', 'Button', 'OrderPayload', 'ReviewNotice' ] as $class ) {
    7980        require_once WEBHOOK_BUTTONS_PLUGIN_DIR . "includes/classes/{$class}.php";
    8081    }
    … …  
    9697    WebhookButtons\Endpoints::get_instance();
    9798    WebhookButtons\PostEdit::get_instance();
     99    WebhookButtons\ReviewNotice::get_instance();
    98100} );
Note: See TracChangeset for help on using the changeset viewer.