Created
December 30, 2021 14:28
-
-
Save Asikur22/688c7b16a55ead75dc9628eb633fdb5d to your computer and use it in GitHub Desktop.
WP Change Site Language
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp', function () { | |
is_admin() or switch_to_locale( 'en_US' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment