woocommerce_get_cart_contents filter-hook . WC 3.2.0
Gets cart contents.
Usage
add_filter( 'woocommerce_get_cart_contents', 'filter_function_name_8578' ); function filter_function_name_8578( $condition ){ // filter... return $condition; }
- $condition
- -
Changelog
Since 3.2.0 | Introduced. |
Where the hook is called
woocommerce_get_cart_contents
woocommerce/includes/class-wc-cart.php 140
return apply_filters( 'woocommerce_get_cart_contents', (array) $this->cart_contents );