woocommerce_before_cart_table
The WooCommerce woocommerce before cart table hook.
Description
do_action( 'woocommerce_before_cart_table' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'woocommerce_before_cart_table' );
- The following example is for adding a hook callback.
- // define the woocommerce_before_cart_table callback
- function action_woocommerce_before_cart_table( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'woocommerce_before_cart_table', 'action_woocommerce_before_cart_table', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'woocommerce_before_cart_table', 'action_woocommerce_before_cart_table', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /templates/cart/cart.php
- <?php do_action( 'woocommerce_before_cart_table' ); ?>