Get the ID of the default language equivalent page in Polylang [closed]

Question

How can I get the ID of the default language equivalent for whatever page I’m currently on?

For example, I’m on abc.com/es/mypage, I want to get the ID of abc.com/mypage.

I tried setting up the variable this way:

$englishID = get_the_id(pll_default_language());

But this just grabs the ID of the page I’m currently on, not the English equivalent. Any ideas?

0
, website walrus 1 year 2020-07-23T17:10:27-05:00 0 Answers 49 views 0

Leave an answer

Browse
Browse