Get default language of sub-site Wordpress multisite
<?php | |
subsites = get_sites(); | |
foreach( $subsites as $subsite ): | |
switch_to_blog( $subsite->blog_id ); | |
$default_lang = pll_default_language(); | |
restore_current_blog(); | |
endforeach; |
This comment has been minimized.
This comment has been minimized.
Sai tên biến kìa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
thêm😹
<?php
cho nó highlight