wc_empty_cart_message filter-hookWC 3.1.0

Show notice if cart is empty.

Usage

add_filter( 'wc_empty_cart_message', 'wp_kama_wc_empty_cart_message_filter' );

/**
 * Function for `wc_empty_cart_message` filter-hook.
 * 
 * @param  $__ 
 *
 * @return 
 */
function wp_kama_wc_empty_cart_message_filter( $__ ){

	// filter...
	return $__;
}
$__
-

Changelog

Since 3.1.0 Introduced.

Where the hook is called

wc_empty_cart_message()
wc_empty_cart_message
woocommerce/includes/wc-template-functions.php 3643
echo '<p class="cart-empty woocommerce-info">' . wp_kses_post( apply_filters( 'wc_empty_cart_message', __( 'Your cart is currently empty.', 'woocommerce' ) ) ) . '</p>';

Where the hook is used in WooCommerce

Usage not found.