Gemini Enterprise for CX 1.2.1 has 10 actions and 26 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Gemini Enterprise for CX fires an action
add_action( 'gecx_cart_token_unknown_issuer', function( $reported ) {
// Your code runs here.
}, 10, 1 );
// Change a value Gemini Enterprise for CX is about to use
add_filter( 'gecx_cart_badge_selectors', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters the selectors of cart count badges storefront.js writes the new item * count into when the WooCommerce Blocks cart data store is not on the page. */ apply_filters( 'gecx_cart_badge_selectors', self::DEFAULT_CART_BADGE_SELECTORS ); -
/** * Filters whether storefront.js triggers the jQuery added_to_cart and * removed_from_cart events instead of the native ones. Off by default: many * themes open a side cart on them, and their handlers expect arguments only a * real add-to-cart click provides. The block mini-cart translates them into * the native events itself. */ apply_filters( 'gecx_cart_refresh_legacy_events', false ); -
/** * Filters whether storefront.js dispatches the WooCommerce Blocks * wc-blocks_added_to_cart and wc-blocks_removed_from_cart events after the * agent changes the cart. The block mini-cart refreshes its badge on them. */ apply_filters( 'gecx_cart_refresh_native_events', true ); -
/** * Filters the capabilities that disqualify a user from cart-token * authentication. */ apply_filters( 'gecx_cart_token_privileged_caps', self::PRIVILEGED_CAPS ); -
/** * Fires when a signed cart token names an issuer the plugin does not * recognise. Handlers receive the raw claim. */ do_action( 'gecx_cart_token_unknown_issuer', $reported ); -
/** * Filters whether the plugin enqueues wc-cart-fragments so classic theme cart * counts update after the agent changes the cart. */ apply_filters( 'gecx_enqueue_cart_fragments', ! $is_block_theme ); -
/** * Filters whether the launcher scripts are excluded from JavaScript delay, * defer and combine optimizations. */ apply_filters( 'gecx_exclude_from_js_delay', true ); -
/** * Filters whether the current request renders an AMP page, on which the plugin * outputs nothing. */ apply_filters( 'gecx_is_amp_request', $is_amp ); -
/** * Fires after the plugin asked the page caches it knows to purge. Hook it to * purge a host or CDN cache the plugin does not know. */ do_action( 'gecx_purge_page_caches' ); -
/** * Filters whether the plugin purges page caches after a setting that changes * storefront pages is saved. */ apply_filters( 'gecx_purge_page_caches_on_change', true, $option ); -
/** * Filters whether the Google-hosted chat widget bundle should be enqueued * immediately on page load. */ apply_filters( 'gecx_should_load_widget', ! $defer_until_interaction ); -
apply_filters( 'gecx_allow_multiple_pdp_prompt_injections', false ); -
apply_filters( 'wc_session_expiration', 2 * DAY_IN_SECONDS ); -
do_action( 'woocommerce_set_cart_cookies', true ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'cloudflare_purge_everything' ); -
apply_filters( 'gecx_active_agent_name', $agent_name ); -
apply_filters( 'gecx_agent_button_attributes', $attrs ); -
apply_filters( 'gecx_auth_context_allowed_origins', $urls ); -
do_action( 'gecx_cart_token_refused', $token_user_id, $refusal['code'], $refusal['capability'] ); -
apply_filters( 'gecx_chat_widget_script_url', 'https://www.gstatic.com/gecx/chat-widget/woocommerce-chat-widget.js' ); -
apply_filters( 'gecx_chat_widget_style_url', plugins_url( 'assets/css/theme.css', $this->plugin_file ) ); -
apply_filters( 'gecx_console_base_url', is_string( $configured ) ? $configured : '' ); -
apply_filters( 'gecx_enable_secondary_pdp_hook', false ); -
apply_filters( 'gecx_is_widget_enabled', $enabled ); -
apply_filters( 'gecx_suggested_prompts_attributes', $attrs ); -
apply_filters( 'gecx_suggested_prompts_hook', 'woocommerce_single_product_summary' ); -
apply_filters( 'gecx_suggested_prompts_priority', 35 ); -
apply_filters( 'gecx_token_broker_name', $token_broker ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'rt_nginx_helper_purge_all' ); -
do_action( 'wphb_clear_page_cache' );
Generated from Gemini Enterprise for CX's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: