PLL_Choose_Lang_Domain

Choose the language when the language is managed by different domains.

Defined (1)

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

/frontend/choose-lang-domain.php  
  1. class PLL_Choose_Lang_Domain extends PLL_Choose_Lang_Url { 
  2.  
  3. /** 
  4. * don't set any language cookie 
  5. * @since 1.5 
  6. */ 
  7. public function maybe_setcookie() {} 
  8.  
  9. /** 
  10. * don't redirect according to browser preferences 
  11. * @since 1.5 
  12. */ 
  13. public function get_preferred_language() { 
  14. return $this->model->get_language( $this->links_model->get_language_from_url() ); 
  15.  
  16. /** 
  17. * Adds query vars to query for home pages in all languages 
  18. * @since 1.5 
  19. */ 
  20. public function home_requested() { 
  21. $this->set_lang_query_var( $GLOBALS['wp_query'], $this->curlang ); 
  22. /** This action is documented in include/choose-lang.php */ 
  23. do_action( 'pll_home_requested' );