wcml_variation_term_taxonomy_ids

The WooCommerce Multilingual wcml variation term taxonomy ids hook.

Description

apply_filters( 'wcml_variation_term_taxonomy_ids', (array) $array_get_variation_term_taxonomy_ids ); 

Parameters (1)

0. $array_get_variation_term_taxonomy_ids (array) => (array)$get_variation_term_taxonomy_ids
The array get variation term taxonomy ids.

Usage

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

Defined (2)

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

/inc/class-wcml-troubleshooting.php  
  1. $get_variation_term_taxonomy_ids = apply_filters('wcml_variation_term_taxonomy_ids', (array)$get_variation_term_taxonomy_ids); 
/inc/class-wcml-products.php  
  1. $get_variation_term_taxonomy_ids = apply_filters( 'wcml_variation_term_taxonomy_ids', (array)$get_variation_term_taxonomy_ids );