wcml_cart_contents_not_changed

The WooCommerce Multilingual wcml cart contents not changed hook.

Description

apply_filters( 'wcml_cart_contents_not_changed', (unknown) $cart_cart_contents_key, (unknown) $key, (unknown) $current_language ); 

Parameters (3)

0. $cart_cart_contents_key (unknown)
The cart cart contents key.
1. $key (unknown)
The key.
2. $current_language (unknown)
The current language.

Usage

To run the hook, copy the example below.
  1. $cart_cart_contents_key = apply_filters( 'wcml_cart_contents_not_changed', $cart_cart_contents_key, $key, $current_language ); 
  2.  
  3. if ( !empty( $cart_cart_contents_key ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wcml_cart_contents_not_changed callback 
  2. function filter_wcml_cart_contents_not_changed( $cart_cart_contents_key, $key, $current_language ) { 
  3. // make filter magic happen here... 
  4. return $cart_cart_contents_key
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wcml_cart_contents_not_changed', 'filter_wcml_cart_contents_not_changed', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wcml_cart_contents_not_changed', 'filter_wcml_cart_contents_not_changed', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

/inc/class-wcml-cart.php  
  1. $new_cart_data[ $key ] = apply_filters( 'wcml_cart_contents_not_changed', $cart->cart_contents[$key], $key, $current_language );