wcml_check_wpml_functions

The WooCommerce Multilingual wcml check wpml functions function.

Description

wcml_check_wpml_functions(); 

Usage

  1. if ( !function_exists( 'wcml_check_wpml_functions' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-multilingual/inc/missing-php-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcml_check_wpml_functions(); 
  7.  

Defined (1)

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

/inc/missing-php-functions.php  
  1. function wcml_check_wpml_functions() { 
  2.  
  3. if( !has_filter( 'translate_object_id' ) ) { 
  4. add_filter( 'translate_object_id', 'icl_object_id', 10, 4 ); 
  5.  
  6. if( !has_action( 'wpml_register_single_string' ) ) { 
  7. if( function_exists( 'wpml_register_single_string_action' ) ) { 
  8. add_action('wpml_register_single_string', 'wpml_register_single_string_action', 10, 4); 
  9. }elseif ( function_exists( 'icl_register_string' ) ) { 
  10. add_action('wpml_register_single_string', 'icl_register_string', 10, 4); 
  11.