Last active
November 23, 2022 18:04
-
-
Save audrasjb/4de262c5ecfbe9559736e77aa9fbf8af to your computer and use it in GitHub Desktop.
Force fr-CH language attribute on the HTML tag. Made for Jeff Legras (question asked in WordPress Academy Facebook group)
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 | |
/** | |
* Plugin Name: Filter language attribute to force fr-CH. | |
* Author: Jb Audras | |
* Author URI: https://jeanbaptisteaudras.com | |
* License: GPLv2 or later | |
* Version: 1.0.0 | |
*/ | |
function jba_language_attributes() { | |
return 'lang="fr-CH"'; | |
} | |
add_filter( 'language_attributes', 'jba_language_attributes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment