title: Get homepage of a website of selected languge in Wordpress + Polylang
body: <p>In my Wordpress + Polylang website, <code>accueil</code> is the page name of homepage in French and <code>inicio</code> is the page name of homepage in Spanish.</p>
  <p>So the homepages are:</p>
  <pre><code>English : https://www.example.com
  French  : https://www.example.com/fr/accueil/
  Spanish : https://www.example.com/es/inicio/
  </code></pre>
  <p>Is it possible to get the homepage url of a selected language?</p>
  <p>I use <code>home_url()</code> to get the homepage.</p>
  <p>And I use <code>pll_current_language()</code> polylang function to get the selected polylang language code of the website.</p>
  <p>But <code>home_url()</code> returns same English homepage url even if I select any other language.</p>