woocommerce_after_add_to_cart_button
The WordPress Core woocommerce after add to cart button hook.
Description
do_action( 'woocommerce_after_add_to_cart_button' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'woocommerce_after_add_to_cart_button' );
- The following example is for adding a hook callback.
- // define the woocommerce_after_add_to_cart_button callback
- function action_woocommerce_after_add_to_cart_button( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'woocommerce_after_add_to_cart_button', 'action_woocommerce_after_add_to_cart_button', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'woocommerce_after_add_to_cart_button', 'action_woocommerce_after_add_to_cart_button', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /woocommerce/single-product/add-to-cart/variable.php
- do_action('woocommerce_after_add_to_cart_button');