ddw_wcde_do_load_translations_woocommerce

Load actual translations for WooCommerce main plugin.

Description

ddw_wcde_do_load_translations_woocommerce(); 

Usage

  1. if ( !function_exists( 'ddw_wcde_do_load_translations_woocommerce' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/includes/wcde-wctranslations-loader.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_wcde_do_load_translations_woocommerce(); 
  7.  

Defined (1)

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

/includes/wcde-wctranslations-loader.php  
  1. function ddw_wcde_do_load_translations_woocommerce() { 
  2.  
  3. /** Admin only strings go only within admin, oh yeah! :) */ 
  4. if ( is_admin() ) { 
  5.  
  6. /** 1) Load our customtranslations WooCommerce Admin strings only! */ 
  7. array( 
  8. 'woocommerce',  
  9. ),  
  10. 'woocommerce-admin' 
  11. ); 
  12.  
  13. } // end if 
  14.  
  15. /** 2) Load our customtranslations WooCommerce General/ Global */ 
  16. array( 
  17. 'woocommerce',  
  18. ),  
  19. 'woocommerce' 
  20. ); 
  21.  
  22. } // end of function ddw_wcde_do_load_translations_woocommerce