Created
June 23, 2023 21:03
-
-
Save xardit/4c99cd2e7f6822c6519630fd98721379 to your computer and use it in GitHub Desktop.
WP Hardcode Language Attribute on HEAD
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
<?php | |
// set language attribute of the main <html> tag hardcoded | |
function new_language_attributes($lang){ | |
return "lang=\"it\""; | |
} | |
add_filter('language_attributes', 'new_language_attributes'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment