To remove class from body tag

PHOTO EMBED

Sat May 14 2022 10:26:29 GMT+0000 (UTC)

Saved by @QQcoder #class #remove #body

// Remove class from body tag
function alpha_body_class($classes){
   unset($classes[array_search('class-one', $classes)]);
   unset($classes[array_search('class-two', $classes)]);
   unset($classes[array_search('class-three', $classes)]);
   return $classes;
}
add_filter('body_class', 'alpha_body_class');
content_copyCOPY