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 prevent a post from being deleted?
- How do I cleanly override a plugin’s CSS with a child theme?
- Is it possible to stop selected plugins from loading on certain template pages?
- Hide wordpress plugins from list
- Limit access to posts/pages by user roles
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- WordPress Capabilities: edit_user vs edit_users
- Function to activate WordPress theme inside a plugin
- Seeking clarification on page request life-cycle
- How to assign user a role if none is present when logging in
- Which functions in theme or plugin load first
- Get info (url) from already enqueued styles
- Specific post user permissions
- How can I let users to access plugin functions based on roles?
- Restricting users to a specific front end page [closed]
- resize only height using wp_get_image_editor
- Autoload via composer in plugin interference
- WP theme with Backbone
- Translating plugin inside the theme [closed]
- Editing Theme to apply Co-Authors Plus
- Include Max mega menu Plugin into theme
- How to integrate plugin in WordPress theme
- How to include plugin without activation?
- Advanced Custom Fields/User Role Editor – how to hide ACF for certain users?
- How do you remove plugin edit option?
- WordPress logo upload option in theme panel
- wordpress theme backend admin only
- Update User Role
- How to achieve certain page (url) accessible to certain users
- how to load the language file in plugin?
- How to make a customize role and view a specific plugins base on that role?
- How to get current post user id
- Different UI in WordPress
- Redux Framework has an embedded demo. Click here to activate the sample config file
- The problem with WordPress Importer
- Why does my functions.php cause white-screen and media-library issues?
- Display post lists in 2nd paragraph
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- How to set add question capability for author role in wp pro quiz plugin
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- How to use get_template part in the plugin?
- Overriding Parent Theme… will cause plugins failure?
- How can I show a different theme for admin users? WP 3.8+
- Is there any way to make myself an admin?
- Understanding State in WordPress Multisites
- How to show the number of website visitors in my theme
- How to write “alt” tag in image for wordpress code?
- Customizing Titles on the Fly with Code
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Shortcode Attributes to Return different $_POST
- What form should the $query media query array have for an Elementor page builder function? [closed]
- is_rtl returns false while it should return true
- Include Minit plugin in theme [closed]
- Managing wordpress Themes & plugins for multisite
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- WordPress custom post type image in RSS
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Show media-uploads to all users
- Plugin permissions for Editor role
- display unique post per category
- How To Create A File Archive in WordPress?
- Polldaddy doesn’t show up on own theme
- 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?
- Is there a way to keep youtube videos from displaying on home page, and display only on single posts?
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Plugin privelages for “editors”
- Plugin access and Roles
- Plugin Hook When New Author Added
- Janrain/Simple Modal under Redirected Domain
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- Show an admin menu item in Editor role
- require_once not working in plugin wordpress
- how to display recent post by category on home page
- Allow a particular user to access a particular plugin?
- Unpublished Pages Failing To Appear On Custom Path
- 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?
- Disqus comment system not show
- Remove action added in plugin class from theme
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- 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
- Why user profile update creates Additional Capabilities
- How to add wordpress plugins in along with my standalone theme
- How can I add different menus (different style menu) on each page?
- Site is setup statically – how to make it content managable?
- How can I make a website with dynamic features with wordpress?
- Javascript as Jquery Function Call?
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to escape html code?
- Ajax button “Load more” is not loading correct language version posts for logged out users
- I want to include My theme file (testing.php) to inside my plugin folder (myplugin/mypugin.php)
- How to Enfroce Domain Licensing Limits? [closed]
- Override plugin constant using a theme
- How to have certain products show for only certain users (Not roles)