If you want WordPress to automatically append a class to the body_class list when users are not authenticated, put that class name here.
To remove this functionality altogether, set to
return [ "guest-class" => "my-custom-class", ]
Also note that we must call the
get_body_class()) function to get these classes wherever our body tag is located in the theme.
<?php wp_head() ?> <body <?php body_class() ?>>
Now when we visit the site without being logged in: