
or
/ NOTE: Of course change 3 to the appropriate user ID $u = new WP_User( 3 ); // Remove role $u->remove_role( 'subscriber' ); // Add role $u->add_role( 'editor' );
Super Admin – somebody with access to the site network administration features and all other features. See the Create a Network article.
Administrator – somebody who has access to all the administration features within a single site.
Editor – somebody who can publish and manage posts including the posts of other users.
Author – somebody who can publish and manage their own posts.
Contributor – somebody who can write and manage their own posts but cannot publish them.
Subscriber – somebody who can only manage their profile.
Related Posts:
- How to make plugin required in a wp theme without using php conditional statements when calling an individual function from that plugin?
- Deactivate plugin for a specific user group
- Publish author posts only with editor approval?
- How can I modify the Capability needed to access a plugin’s options?
- Hide wordpress plugins from list
- Disable plugins for a specific user role
- User profiles and object associations
- How to hide fields from my user profiles
- How to make my plugin theme-independent?
- Dynamic homepage according to user role
- Add custom buttons with custom actions in Edit Post screen in WordPress?
- WordPress roles – Protect administrator role
- Autoload via composer in plugin interference
- Workflow and best practice for documentation [closed]
- Is there a quick way to inject i18n domain into theme/plugin files?
- WordPress language switcher
- Showing Co-Authors on post page
- How create a role with admin capability less 1 or 2?
- Custom Taxonomy Tag Search
- Check if we’re viewing an event
- Getting user roles in plugin files
- How does WP handle multiple matching rewrite rules?
- Menus, but not by theme location
- Events Made Easy Plugin – Duplicate Title Tags
- What is the correct way to update both WP/plugins/themes without breaking the site?
- Not getting author rank when using return
- All of my custom posttypes are 404’ing
- Redirection of users away from wp-admin (but not administrators)
- Classified ad website : which solutions to use? [closed]
- Finding the URL to be used to check if plugin is installed with a theme
- Js file is not adding using this code in functions.php
- Overriding Parent Theme… will cause plugins failure?
- Customizing Titles on the Fly with Code
- Add SideBar/Widgets Just Below the Post
- Add filter on html tags,attributes on specific function in wordpress
- plugins not working in custom theme
- Shortcode Attributes to Return different $_POST
- How to use the CSS of the WordPress core in the development of my administration page?
- Include Minit plugin in theme [closed]
- Managing wordpress Themes & plugins for multisite
- Multiple authors and readers restricted by role [closed]
- Custom Login page with custom redirects for each user?
- WordPress custom post type image in RSS
- Changing the Organize Series Listing Pages
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Mutliple users editing single document in wordspress
- What’s the right way to implement functions in footer.php
- Plugin permissions for Editor role
- display unique post per category
- Role based permission edit for plugins
- How to add an admin alert for missing plugins
- Is there a way to insert multiple images into a post at the same time without using a gallery?
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Plugin access and Roles
- Adding plugin editing capability for Author
- How to get authors who have added the post in the specific custom post type
- Show an admin menu item in Editor role
- woocommerce remove coupon link does not work
- require_once not working in plugin wordpress
- How to override any plugin file in the child theme
- how to display recent post by category on home page
- Allow a particular user to access a particular plugin?
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- How can I find related learndash course id from woocommerce product object?
- Submitting form to PHP
- How to get a post views count using ‘WordPress popular posts’ plugin
- Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)
- Allow a page to be edited by a specific custom role
- How to create different views for different user roles?
- Disqus comment system not show
- How to use plugin’s shortcode in custom design? [closed]
- How can I disable access to plugin settings in wp admin for other roles
- Remove dashboard links from wordpress
- Product catalogue in WordPress
- Contact form function should be in functions.php or in a plugin file?
- how to add custom css at top above all css file for specific url
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- Why user profile update creates Additional Capabilities
- Is it possible to restrict content in wordpress?
- Allow non-admin users to access plug-in
- Showing ads in the specific category and its sub-categories
- How to copy data from user profile page (profile.php) to theme customizer
- Breadcrumb is not generating the correct post page url
- How can I make a website with dynamic features with wordpress?
- WooCommerce custom query and paging: Not Found error
- How to add image for custom taxonomy
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- How can I convert a complete bootstrap template into a WordPress template? [closed]
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- registration plugin [closed]
- manage_{taxonomy}_custom_column not working
- How to disable plugin capability : “create new category”
- Is website for online game guides doable in WordPress? [closed]
- add_meta_box showing blank screen in my page
- How to create an Info Box on WordPress [closed]
- How to make content as required in custom post type?
- What are Seeds? [closed]
- Best approach to change mobile background image and adding its class
- Show different page depending on user role