In additon to elisolution's response over, this also checks irrespective of whether we are literally on the home web page (not just whether the canonical was established or not). I examined this Answer a tiny bit and as far as I'm able to see, it really works as predicted. If not, https://tripsbookmarks.com/story19244860/the-basic-principles-of-hreflang-tags-wordpress