Extending body classes in front- and backend
Your snippet adds the following classes to the body tag on the front end, someText someText Your snippet adds the following classes to the body tag on the back end, someClassA someClassB If that is you intended result, then yes that works and is correct. You could also do, function add_custom_body_classes($classes) { $someClassA = ‘someText’; … Read more