WordPress action hook
woocommerce_after_variations_table
Defined by WooCommerce and fired by 13 plugins in total, running on 7M+ sites between them.
“Hook: woocommerce_after_variations_table.”
How to use woocommerce_after_variations_table
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_after_variations_table', function() {
// Your code runs here.
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
13 plugins that fire woocommerce_after_variations_table
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_after_variations_table' )src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php:422 -
Sliding Cart for WooCommerce by FunnelKit30,000+ installs
do_action( 'woocommerce_after_variations_table' )templates/cart/quick-view/add-to-cart-variable.php:77 -
WPC Variation Swatches for WooCommerce6,000+ installs
do_action( 'woocommerce_after_variations_table' )templates/variable.php:59 -
WC Variations Radio Buttons3,000+ installs
do_action( 'woocommerce_after_variations_table' )templates/single-product/add-to-cart/variable.php:80 -
ShopPress600+ installs
do_action( 'woocommerce_after_variations_table' )public/templates/single-product/product-add-to-cart-variable.php:61 -
StoreBuild400+ installs
do_action( 'woocommerce_after_variations_table' )public/woocommerce/single-product/add-to-cart/variable.php:60 -
Visual Builder200+ installs
do_action( 'woocommerce_after_variations_table' )inc/woocommerce/single-product/add-to-cart/variable.php:170 -
Modal COD Form for woocommerce100+ installs
do_action( 'woocommerce_after_variations_table' )templates/shop/single-product/add-to-cart/variable.php:56 -
B2B Request a Quote40+ installs
do_action( 'woocommerce_after_variations_table' )includes/public/views/hide-variable-add-to-cart-btn.php:62 -
SizeMe for WooCommerce20+ installs
do_action( 'woocommerce_after_variations_table' )woocommerce/single-product/add-to-cart/variable.php:87 -
Peleman Webshop Plugin10+ installs
do_action( 'woocommerce_after_variations_table' )templates/woocommerce/variable.php:58 -
FoodMaster LiteFewer than 10 installs
do_action( 'woocommerce_after_variations_table' )templates/modal/add-to-cart/variable.php:64 -
Product Variant Dropdown or Radio Button for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_variations_table' )public/templates/single-product/add-to-cart/variable.php:148
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.