I need to assign a role to visitors/guests April 26, 2022 by Tarik Billa Use add_role with any array of capabilities. Example: add_role( 'custom_role', 'Custom Role', array( 'read' => true ) );