Created
February 15, 2022 20:42
-
-
Save jshwlkr/35ad04747a0466cea1f82cd62e3e22d8 to your computer and use it in GitHub Desktop.
Add additional XML namespaces to a WordPress html element
This file contains 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_filter( 'language_attributes', 'prefix_xml_namespaces' ); | |
function prefix_xml_namespaces($output) { | |
return $output . ' xmlns="http://www.w3.org/1999/xhtml" etc'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment