/* Fix Polylang Home URL */ function home_url_multilang( $path = '', $scheme = null ) { if ( function_exists( 'pll_current_language' ) ) { return home_url( pll_current_language() . '/' . $path, $scheme ); } return home_url( $path, $scheme ); }