I created a new user role in functions.php
add_role('guest_author', 'Wholesaler', array( 'read' => true, // True allows that capability 'read_private_pages' => true, ));
for wholesalers, but the first time I did it there was a typo so I changed functions.php, reuploaded but the typo still exists.
Here it states that this code is run on theme activation so I deactivated and reactivated but the typo is still there.
Also, setting pages to private then logging in as a wholesaler I can’t see them, but I set read_private_pages in functions.php. Do I need to do something else to activate this feature?
- The topic ‘add_role resetting’ is closed to new replies.