Multisite: How to get a list of sites by locale


In a network install, sites may be using a different locale. How can I get a list of all sites using a given locale? For example ja

I tried using WP_Site_Query but this didn’t work. For example

$query = WP_Site_Query( ['lang_id' => 'ja'] );

henrywright 4 months 0 Answers 20 views 0

Leave an answer