wpseo_load_textdomain

Load translations.

Description

wpseo_load_textdomain(); 

Usage

  1. if ( !function_exists( 'wpseo_load_textdomain' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/wp-seo-main.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpseo_load_textdomain(); 
  7.  

Defined (1)

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

/wp-seo-main.php  
  1. function wpseo_load_textdomain() { 
  2. $wpseo_path = str_replace( '\\', '/', WPSEO_PATH ); 
  3. $mu_path = str_replace( '\\', '/', WPMU_PLUGIN_DIR ); 
  4.  
  5. if ( false !== stripos( $wpseo_path, $mu_path ) ) { 
  6. load_muplugin_textdomain( 'wordpress-seo', dirname( WPSEO_BASENAME ) . '/languages/' ); 
  7. else { 
  8. load_plugin_textdomain( 'wordpress-seo', false, dirname( WPSEO_BASENAME ) . '/languages/' );