• Resolved kvl

    (@kvl)


    Hi there!
    I’m developing a custom template with restricted pages.
    I’ve set up a “verified_user” Role and a registration form for it.
    Registration with this role happens normally as you can expect.
    I need $result in order to append to debug log if returns false.

    $result = add_role('verified_user', __('Verified User'), array(
    		'read' => true,
    		'access_restricted_page' => true,
    		'delete_posts' => false,
    	));

    What’s the problem here?
    As far as I can read in WP Docs the standard user (who can access his Admin Panel) has just the ‘read’ capability, right?

    What’s missing?

    Thanks!

    K

Viewing 1 replies (of 1 total)
  • Thread Starter kvl

    (@kvl)

    My fault: I had to destroy and rebuild the role and it works like a charm!
    Thanks anyway!

Viewing 1 replies (of 1 total)
  • The topic ‘New custom user with 'read' capability can't access /wp-admin’ is closed to new replies.