How To Add Custom User Role In WP

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email
add_role('applicant', __(
   'Applicant'),
   array(
       'read'            => false, // Allows a user to read
       'create_posts'      => false, // Allows user to create new posts
       'edit_posts'        => false, // Allows user to edit their own posts
       'edit_others_posts' => false, // Allows user to edit others posts too
       'publish_posts' => false, // Allows the user to publish posts
       'manage_categories' => false, // Allows user to manage post categories
       )
);
Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert