wc_predictive_search_plugin_textdomain

Load Localisation files.

Description

wc_predictive_search_plugin_textdomain(); 

Note: the first-loaded translation file overrides any following ones if the same translation is present.

Locales found in: - WP_LANG_DIR/woocommerce-predictive-search/woocommerce-predictive-search-LOCALE.mo


Usage

  1. if ( !function_exists( 'wc_predictive_search_plugin_textdomain' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-predictive-search-lite/wc-predictive-search.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_predictive_search_plugin_textdomain(); 
  7.  

Defined (1)

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

/wc-predictive-search.php  
  1. function wc_predictive_search_plugin_textdomain() { 
  2. $locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-predictive-search' ); 
  3.  
  4. load_textdomain( 'woocommerce-predictive-search', WP_LANG_DIR . '/woocommerce-predictive-search/woocommerce-predictive-search-' . $locale . '.mo' ); 
  5. load_plugin_textdomain( 'woocommerce-predictive-search', false, WOOPS_FOLDER . '/languages/' );