Disable Author Archive just for certain roles in bulk
A simple way to achieve this is to do a conditional redirect on template_redirect action. In the action callback, check that the request is for an author archive of the specified role and if it is, then do the redirect. function my_disabled_author_archive_role() { return ‘buyer’; } add_action( ‘template_redirect’, function() { // Is this an author … Read more