You can use add_role function :
add_role( $role, $display_name, $capabilities );
Just set your custom values as you wish :
add_role('basic_contributor', 'Basic Contributor', array(
'read' => true, // True allows that capability
'edit_posts' => true,
'delete_posts' => false, // Use false to explicitly deny
));
Related Posts:
- Creating a table in the admin-style?
- body_class hook for admin pages
- what’s the meaning of the field wp_capabilities in table wp_usermeta
- Send user activation email when programmatically creating user
- Change admin language based on user (in single-site)
- What is the real intention for admin-post.php?
- Change default admin page for specific role(s)
- Add Custom User Capabilities Before or After the Custom User Role has Been Added?
- Admin config screen without menu
- How to Change the Entire WordPress Admin panel Look and Feel?
- Make Categories and Tags required in admin
- How to add HTML / Form to an Admin Bar Menu
- Error with Custom Admin Screen in iframe Thickbox
- why don’t I get error messages in admin when developing?
- How to Structure a New Role/Capability Scheme?
- WP_Error handles errors, but how can I show success with a message?
- How to add more than 1 user role to sub-menu pages
- How to allow Unfiltered HTML in a wordpress multisite install
- JS / JQuery form validation in backend admin menus
- How to put placeholder text in the main post input area?
- Is it possible to modify the media library admin screen?
- What does $_registered_pages do?
- How to restrict plugin’s sub-menu pages to admin/subscribers?
- How to not let a user with a new role edit users that have administrator role?
- Execute plugin for specific user role(s) only
- Get user id for delete and update selected user
- Add tab to profile.php wordpress plugin development
- WordPress Ajax callback function from plugin – OOP
- query users by role
- Admin auto-refresh is interfering with Firebug — how to prevent it?
- Hide plugin dashboard menu item for specific roles
- Including a JS source with an admin page
- WordPress not working on localhost
- maintaing consistent layout wordpress dashboard
- Add column and post filter for a custom post type field on the edit.php page
- get_posts() not working when accessing with a custom user role
- Is there no admin ui guide for 4.x?
- Limit role to one plugin [duplicate]
- Correct check for any admin page with editor
- Adding (blog-specific) links to “My Sites” admin page
- Change the look and feel of admin pages
- Admin Plugin POST to another file within the plugin
- Logout users upon login, based on caps/role?
- Set different custom menu items for different user roles
- Prevent third party plugin’s admin page access based on user type
- Admin – Handle data before creating or updating a post, page or custom post
- How can I replace content in the WP Admin area before an admin page is rendered?
- How to set add question capability for author role in wp pro quiz plugin
- Add a page in admin without adding menu item
- Including comments meta box on a plugin page
- wp_dropdown_roles() to replace option value = code
- How to Move the Comments Bubble to the Right Side of the Toolbar
- Does admin_print_scripts-$hook_suffix work for nested paths to individual files?
- Use ‘get’ form action within a WordPress plugin admin page
- Hide custom post type by user roles
- Check user’s role and store in variable
- Menu page with minimum capability as ‘Subscriber’ doesn’t allow ‘Admin’ to access it?
- Does is_admin() really provide a plugin performance improvement?
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Best practice for plugin: always detect admin-ajax call?
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- How can I change my assigned user role in WordPress 3.5.1?
- Proper way to create an administration page without adding it to the menu
- using admin functions on frontend
- How to determine which capability to use?
- Google Web Core Vitals – management, how to in wordpress and advice
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- Allow contributor user role to perform copy operation PHP
- Enable a role named ‘backend_user’ to access my plugin pages
- Add custom parameter for custom user role
- Buddy Press restrict the capability to edit users
- How to create plugin settings page for each admin user?
- How I can give access to my custom plugin for editor roles user?
- Remove all capabilities in separate method fails versus included in method
- Remove from a div by class name from post page if post author role is not administrator
- How to return a blank page
- What is more secure checking capabilities of user or checking role of user in WordPress plugin development
- New Users are saved with no role selected
- How do I control the list of Pages an author can see?
- WordPress User Management Departmental Managers
- What happens when you create/edit a menu
- loop and in admin header problem
- modify buddpress adminbar only in admin pages
- Remove default wordpress roles
- Objective Best Practices for Plugin Development? [closed]
- add_menu_page() with different name for first submenu item
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- How to include PHP files in plugins the correct way
- How can I add an image upload field directly to a custom write panel?
- A tool to analyze rewrite rules? [closed]
- Difference Between Filter and Action Hooks?
- framework for plugin/theme options panel? [closed]
- How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?
- Settings API with arrays example
- How to get the path to the current theme?
- How to make a plugin require another plugin?
- ajaxurl not defined on front end
- What process do you use for WordPress development? [closed]
- What’s the difference between term_id and term_taxonomy_id
- Should I use wpdb prepare?