WCML_JCK_WSSV

The WooCommerce Multilingual WCML JCK WSSV class.

Defined (1)

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

/compatibility/class-wcml-jck-wssv.php  
  1. class WCML_JCK_WSSV{ 
  2.  
  3. private $transient_name = 'jck_wssv_term_counts'; 
  4.  
  5. public function __construct() { 
  6.  
  7. add_filter( 'pre_transient_' . $this->transient_name, array( $this, 'get_language_specific_transient' ) ); 
  8. add_filter( 'set_transient_' . $this->transient_name, array( $this, 'set_language_specific_transient' ), 10, 2 ); 
  9.  
  10. public function get_language_specific_transient() { 
  11. return get_transient( $this->transient_name . '_' . ICL_LANGUAGE_CODE ); 
  12.  
  13. public function set_language_specific_transient( $value, $expiration ) { 
  14.  
  15. delete_transient( $this->transient_name ); 
  16. set_transient( $this->transient_name . '_' . ICL_LANGUAGE_CODE, $value, $expiration ); 
  17.  
  18.