Ajax add to cart for WooCommerce icon
eCommerce & WooCommerce

Ajax add to cart for WooCommerce hooks reference

Ajax add to cart for WooCommerce 2.6.7 has 6 actions and 25 filters, read directly from its source code on Nov 17, 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.

functions.phpyour child theme
// Run your own code when Ajax add to cart for WooCommerce fires an action
add_action( 'jetpack_activate_module', function( $module, $success ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Ajax add to cart for WooCommerce is about to use
add_filter( 'jetpack_active_modules', function( $active ) {
	// Change $active here.
	return $active;
}, 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

  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 574
    /**
     * Fires when a specific module is activated.
     */
    do_action( 'jetpack_activate_module', $module, $success );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 583
    /**
     * Fires when a module is activated. The dynamic part of the filter, $module,
     * is the module slug.
     */
    do_action( "jetpack_activate_module_{$module}", $module );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 231
    /**
     * Allow filtering of the active modules.
     */
    apply_filters( 'jetpack_active_modules', $active );
  • jetpack_vendor/automattic/jetpack-assets/src/class-script-data.php line 165
    /**
     * Filter the admin script data.
     */
    apply_filters( 'jetpack_admin_js_script_data', $data );
  • jetpack_vendor/automattic/jetpack-constants/src/class-constants.php line 88
    /**
     * Filters the value of the constant.
     */
    apply_filters( 'jetpack_constant_default_value', null, $name );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 595
    /**
     * Fired after a module has been deactivated.
     */
    do_action( 'jetpack_deactivate_module', $module, $success );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 604
    /**
     * Fires when a module is deactivated. The dynamic part of the filter, $module,
     * is the module slug.
     */
    do_action( "jetpack_deactivate_module_{$module}", $module );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 319
    /**
     * Filters the array of modules available to be activated.
     */
    apply_filters( 'jetpack_get_available_modules', $modules, $min_version, $max_version, $requires_connection, $requires_user_connection );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 274
    /**
     * Stand alone plugins need to use this filter to register the modules they
     * interact with. This will allow them to activate and deactivate these modules
     * even when Jetpack is not present. Note: Standalone plugins can only interact
     * with modules that also exist in the Jetpack plugin, otherwise they'll lose
     * the ability to control it if Jetpack is activated.
     */
    apply_filters( 'jetpack_get_available_standalone_modules', array(), $requires_connection, $requires_user_connection );
  • jetpack_vendor/automattic/jetpack-assets/src/class-assets.php line 193
    /**
     * Filters the URL for a file passed through the get_file_url_for_environment
     * function.
     */
    apply_filters( 'jetpack_get_file_for_environment', $url, $min_path, $non_min_path );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 140
    /**
     * Filter the returned data about a module.
     */
    apply_filters( 'jetpack_get_module', $mod, $module, $file );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 533
    /**
     * Filters the path of a modules.
     */
    apply_filters( 'jetpack_get_module_path', JETPACK__PLUGIN_DIR . "modules/$slug.php", $slug );
  • jetpack_vendor/automattic/jetpack-assets/src/class-assets.php line 523
    /**
     * Filters the i18n state data for use by Webpack bundles built with
     * `@automattic/i18n-loader-webpack-plugin`.
     */
    apply_filters( 'jetpack_i18n_state', $data );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 428
    /**
     * Filters the is_coming_soon check.
     */
    apply_filters( 'jetpack_is_coming_soon', $is_coming_soon );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 356
    /**
     * Filters is_development_site check.
     */
    apply_filters( 'jetpack_is_development_site', $is_dev_site );
  • jetpack_vendor/automattic/jetpack-status/src/class-request.php line 69
    /**
     * Filter whether the current request is for accessing the frontend.
     */
    apply_filters( 'jetpack_is_frontend', $is_frontend, $send_vary_headers );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 327
    /**
     * Filters in_safe_mode check.
     */
    apply_filters( 'jetpack_is_in_safe_mode', $in_safe_mode );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 204
    /**
     * Filters is_local_site check.
     */
    apply_filters( 'jetpack_is_local_site', $is_local );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 399
    /**
     * Filters the is_private_site check.
     */
    apply_filters( 'jetpack_is_private_site', $is_private_site );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 298
    /**
     * Filters is_staging_site check.
     */
    apply_filters( 'jetpack_is_staging_site', $is_staging );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 265
    /**
     * Filters the flags of known staging sites.
     */
    apply_filters( 'jetpack_known_staging', $known_staging );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 126
    /**
     * Filters the feature array on a module.
     */
    apply_filters( 'jetpack_module_feature', $mod['feature'], $module, $mod );
  • jetpack_vendor/automattic/jetpack-status/src/class-status.php line 54
    /**
     * Filters Jetpack's offline mode.
     */
    apply_filters( 'jetpack_offline_mode', $offline_mode );
  • jetpack_vendor/automattic/jetpack-assets/src/class-script-data.php line 218
    /**
     * Filters the site icon using Photon.
     */
    apply_filters( 'jetpack_photon_url', get_site_icon_url(), array( 'w' => 64 ) );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 393
    /**
     * Fires before a module is activated.
     */
    do_action( 'jetpack_pre_activate_module', $module, $exit, $redirect );
  • jetpack_vendor/automattic/jetpack-status/src/class-modules.php line 508
    /**
     * Fires when a module is deactivated.
     */
    do_action( 'jetpack_pre_deactivate_module', $module );
  • jetpack_vendor/automattic/jetpack-assets/src/class-script-data.php line 186
    /**
     * Filter the public script data.
     */
    apply_filters( 'jetpack_public_js_script_data', $data );
  • jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php line 156
    apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );
  • jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php line 154
    apply_filters( 'install_plugins_tabs', $tabs );
  • lib/class-plugin.php line 53
    apply_filters( 'qlwcajax_product_enabled', '__return_true', $product );
  • lib/class-plugin.php line 55
    apply_filters( 'qlwcajax_product_supported_types', array( 'simple', 'variable' ), $product );

Generated from Ajax add to cart for WooCommerce'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.

Plugin 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 this

Not 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: