woocommerce_before_cart action-hookWC 1.0

Usage

add_action( 'woocommerce_before_cart', 'wp_kama_woocommerce_before_cart_action' );

/**
 * Function for `woocommerce_before_cart` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_before_cart_action(){

	// action...
}

Where the hook is called

In file: /templates/cart/cart.php
woocommerce_before_cart
woocommerce/templates/cart/cart.php 20
do_action( 'woocommerce_before_cart' ); ?>

Where the hook is used in WooCommerce

woocommerce/includes/wc-template-hooks.php 307
add_action( 'woocommerce_before_cart', 'woocommerce_output_all_notices', 10 );