You can create a custom role that will hold capabilities of the multiple roles you want and assign that single custom role.
or you can simple do this by code, a user’s role can be set by creating an instance of the WP_user class, and calling the add_role() ex:
$user = new WP_User( $user_id );
$user->add_role( 'editor' );
Related Posts:
- Difference between add_filter and apply_filters
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Create plugin with 3rd party MIT license code
- Notice: wp_get_http is deprecated since version 4.4.0!
- How to check plugins for malicious code?
- How to properly secure my WordPress installation?
- How to add usermeta to “Notice of Email Change” email message
- Is it necessary to translate WordPress key terms when localizing a plugin
- Adding dynamic section to WordPress
- Add Fields with Sub-Fields to WP Job Manager
- How to edit/delete single row items in a table on my own menu page
- Disable wp_enqueue_styles action for specific page
- How to create custom embed block in gutenberg wordpress
- How to add css class to a specific set of images?
- WooCommerce E-Check payment gateway disappeared when site switched to multi-site
- How can sanitize $_FILES[‘haq_slider’] field
- Facebook plugin shows existing comments
- How to trigger $_GET request within admin plugin page?
- Wp favorite posts get user favorites in profile using buddypress [closed]
- How to configure two SMTP Server for wordpress
- Preferred way of cacheing a value in php
- Internationalization autocomplete JS variable
- Howto accurately position images with maximum flexibility?
- Using a post-signup hook to get user details
- How to merge two .PO language files?
- wp_remote_get() returns 403 while file_get_contents() does not
- How to set add question capability for author role in wp pro quiz plugin
- Which widget to use for display category post with view more? [closed]
- Create a multisite network for an existing installation
- AFNetworking incorrectly interpreted WP_Error
- polylang + category/tag custom language link
- how to insert data in wordpress table usnig jquery ajax
- Hack-Proof OR Security in WordPress — is it real?
- Is wp-app.php or wp-apps.php needed for WordPress?
- Warning: Use of undefined constant list_all – assumed ‘list_all’ (this will throw an Error in a future version of PHP)
- How to distinguish if a plugin is not installed or just not active
- JavaScript in a PHP plugin
- Checking the count within a foreach loop
- WordPress Apply filter in plugin causes 500 internal error
- Meta query for comparing two dates
- Can’t activate Plugin: unexpected T_STRING, expecting T_FUNCTION [closed]
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Is there a plugin for feedback like Kissmetrics available? [closed]
- Mask and Track Outbound Links
- Shortcode does not expand in Facebook like
- How do i show different group of images below a button when the button is clicked on the same page in wordpress? [closed]
- why need theme,if page builder is there in wordpress [closed]
- How to Include Custom Post Content From Plugin
- How to redirect to a page after the form is submitted
- Exporting Custom Taxonomy in plugin
- How do i specify a url to which to redirect the user after he logs out from facebook?
- hardcoded wp pages/plugins problems
- Gantry Framework: new page loads homepage content instead of page content
- What’s the best way to echo out a filter variable?
- How to show multi line output from metabox
- How to keep plugin (media-sync) running even the tab is closed?
- Load CSS before Theme CSS
- WordPress Media Library Folders + Custom Linux Server Hosting
- How does the WP repository determine that two plugins are the same when counting active installs?
- Visual composer custom element error
- Attempting to list all product categories and the price range of all products within them
- Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
- A dynamic table plugin to get user input
- What plugin would make this happen? If is the theme
- translate wordpress website from english to arabic
- how to add a hidden type input to wp admin login form programmatically
- when i activate my WordPress plugin cannot see customizer options or preview
- Writing SEO for Homepage when homepage is set to display latest posts
- How to Modify WordPress Plugin Placement/Position on Post Page?
- Plugin Options Page and Subpage
- Protect WordPress option value
- wp rest api (v2) filter not working (404 error – rest_no_route)
- WordPress PHP error getting posts from another wordpress blog
- Returning incorrect $post->ID after installing plugin
- ABSPATH doesn’t work
- WordPress crob job performance
- How to disable wordpress page rewrite rule?
- How know the “admin” blog from wordpress multisite?
- Modifying WordPress XML-RPC Built-Ins
- wp_query for more fields plugin
- contact 7 plugin stops some pages from working properly
- Disqus plugin outputs script as literal text
- WordPress “Categories to tag converter” not working on imported Blogger posts
- Shortcode return is printing a 1 afterward
- How we add tabs in plugin page
- Custom booking form field not saving
- Woocommerce Revenue
- How to register new elementor widget in functions.php
- Foreach retun in shortcode
- Plugin Option Fire Custom Function After Save
- filter just a portion of plugin function
- Is option_active_plugins actually doing anything useful?
- How to add infinite scroll to element products widget
- How can I resolve an error on WordPress after PHP update
- upload_mimes is getting ingored, how to add a new mime type?
- PHP FATAL ERROR
- search by meta field in the regular WordPress admin panel search
- Show different page depending on user role
- Email notification when registred user clicks a link/visits page