Skip to content

Instantly share code, notes, and snippets.


zzfortezz/example.php Secret

Last active Sep 21, 2018
What would you like to do?
Get default language of sub-site Wordpress multisite
subsites = get_sites();
foreach( $subsites as $subsite ):
switch_to_blog( $subsite->blog_id );
$default_lang = pll_default_language();

This comment has been minimized.

Copy link

@tatthien-zz tatthien-zz commented Sep 21, 2018

thêm <?php cho nó highlight 😹


This comment has been minimized.

Copy link

@nguyenvanduocit nguyenvanduocit commented Sep 21, 2018

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
You can’t perform that action at this time.