Plugin Directory

Changeset 3760135


Ignore:
Timestamp:
10/22/2026 03:24:25 PM (4 weeks ago)
Author:
karan08
Message:

Release 1.2.0: add-on interface for ShopBouncer Pro

Location:
shopbouncer
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shopbouncer/tags/1.2.0/includes/class-admin.php

    r3721440 r3760135  
    700700                }
    701701                echo '</p>';
     702                /**
     703                 * After the evidence of an agent order (ShopBouncer Pro adds its export links here).
     704                 *
     705                 * @param \WC_Order $order Order placed by an AI agent.
     706                 */
     707                do_action( 'shopbouncer_order_box_after', $order );
    702708        }
    703709
  • shopbouncer/tags/1.2.0/includes/class-recorder.php

    r3721440 r3760135  
    122122                set_transient( $key, 1, min( (int) $ttl, DAY_IN_SECONDS ) );
    123123                return false;
     124        }
     125
     126        /**
     127         * The current request's agent, as seen so far: for add-ons (ShopBouncer Pro) that act before the response.
     128         * Verifies the signature (once, memoized) or checks the IP ranges, so call it only when the answer matters.
     129         *
     130         * @return array|null { name, operator, kind, trust, area } or null for human traffic and admin/cron requests.
     131         */
     132        public static function current() {
     133                if ( null === self::$hit ) {
     134                        return null;
     135                }
     136                return array(
     137                        'name'     => self::$hit['agent'][0],
     138                        'operator' => self::$hit['agent'][1],
     139                        'kind'     => self::$hit['agent'][2],
     140                        'trust'    => self::trust( self::verification() ),
     141                        'area'     => self::area(),
     142                );
    124143        }
    125144
  • shopbouncer/tags/1.2.0/readme.txt

    r3721440 r3760135  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.0
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    123123== Changelog ==
    124124
     125= 1.2.0 =
     126* New: a small, documented interface for add-ons: the identity check for the current request (agent, verdict, store area) and a hook below an agent order's evidence box. Nothing changes for existing stores.
     127
    125128= 1.1.0 =
    126129* New: sales sent by AI assistants (ChatGPT, Perplexity, Gemini, Claude, Copilot and more), from WooCommerce Order Attribution.
  • shopbouncer/tags/1.2.0/shopbouncer.php

    r3721440 r3760135  
    33 * Plugin Name:       ShopBouncer
    44 * Description:       See which AI agents visit and shop your store, which ones prove who they are, and which are just using a famous agent's name.
    5  * Version:           1.1.0
     5 * Version:           1.2.0
    66 * Requires at least: 6.5
    77 * Requires PHP:      7.4
    … …  
    1919defined( 'ABSPATH' ) || exit;
    2020
    21 define( 'SHOPBOUNCER_VERSION', '1.1.0' );
     21define( 'SHOPBOUNCER_VERSION', '1.2.0' );
    2222define( 'SHOPBOUNCER_FILE', __FILE__ );
    2323define( 'SHOPBOUNCER_DB_VERSION', '1' );
  • shopbouncer/trunk/includes/class-admin.php

    r3721440 r3760135  
    700700                }
    701701                echo '</p>';
     702                /**
     703                 * After the evidence of an agent order (ShopBouncer Pro adds its export links here).
     704                 *
     705                 * @param \WC_Order $order Order placed by an AI agent.
     706                 */
     707                do_action( 'shopbouncer_order_box_after', $order );
    702708        }
    703709
  • shopbouncer/trunk/includes/class-recorder.php

    r3721440 r3760135  
    122122                set_transient( $key, 1, min( (int) $ttl, DAY_IN_SECONDS ) );
    123123                return false;
     124        }
     125
     126        /**
     127         * The current request's agent, as seen so far: for add-ons (ShopBouncer Pro) that act before the response.
     128         * Verifies the signature (once, memoized) or checks the IP ranges, so call it only when the answer matters.
     129         *
     130         * @return array|null { name, operator, kind, trust, area } or null for human traffic and admin/cron requests.
     131         */
     132        public static function current() {
     133                if ( null === self::$hit ) {
     134                        return null;
     135                }
     136                return array(
     137                        'name'     => self::$hit['agent'][0],
     138                        'operator' => self::$hit['agent'][1],
     139                        'kind'     => self::$hit['agent'][2],
     140                        'trust'    => self::trust( self::verification() ),
     141                        'area'     => self::area(),
     142                );
    124143        }
    125144
  • shopbouncer/trunk/readme.txt

    r3721440 r3760135  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.0
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    123123== Changelog ==
    124124
     125= 1.2.0 =
     126* New: a small, documented interface for add-ons: the identity check for the current request (agent, verdict, store area) and a hook below an agent order's evidence box. Nothing changes for existing stores.
     127
    125128= 1.1.0 =
    126129* New: sales sent by AI assistants (ChatGPT, Perplexity, Gemini, Claude, Copilot and more), from WooCommerce Order Attribution.
  • shopbouncer/trunk/shopbouncer.php

    r3721440 r3760135  
    33 * Plugin Name:       ShopBouncer
    44 * Description:       See which AI agents visit and shop your store, which ones prove who they are, and which are just using a famous agent's name.
    5  * Version:           1.1.0
     5 * Version:           1.2.0
    66 * Requires at least: 6.5
    77 * Requires PHP:      7.4
    … …  
    1919defined( 'ABSPATH' ) || exit;
    2020
    21 define( 'SHOPBOUNCER_VERSION', '1.1.0' );
     21define( 'SHOPBOUNCER_VERSION', '1.2.0' );
    2222define( 'SHOPBOUNCER_FILE', __FILE__ );
    2323define( 'SHOPBOUNCER_DB_VERSION', '1' );
Note: See TracChangeset for help on using the changeset viewer.