wcml_product_content_label

The WooCommerce Multilingual wcml product content label hook.

Description

apply_filters( 'wcml_product_content_label', (unknown) $field, (unknown) $this_product_id ); 

Parameters (2)

0. $field (unknown)
The field.
1. $this_product_id (unknown)
The this product id.

Usage

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

Defined (1)

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

/inc/translation-editor/class-wcml-editor-ui-product-job.php  
  1. $custom_key_label = apply_filters('wcml_product_content_label', $field, $this->product_id);