-
-
Save jamiemitchell/9150572 to your computer and use it in GitHub Desktop.
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
function mp_remove_body_classes($classes, $class){ | |
foreach($classes as &$str){ | |
if(strpos($str, "YOUR_CLASS_HERE") > -1){ | |
$str = ""; | |
} | |
} | |
return $classes; | |
} | |
add_filter("body_class", "mp_remove_body_classes", 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment