WordPress.org

Ready to get started?Download WordPress

Forums

add_role resetting (1 post)

  1. candell
    Member
    Posted 1 year ago #

    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?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags