The wp_capabilities saves the value as serilized array, you can try it in your php or for this example here: http://blog.tanist.co.uk/files/unserialize/.
The Code:
a:1:{s:13:"administrator";b:1;}
Is:
Array
(
[administrator] => 1
)
Meaning the user is an administrator.
You can add new roles to the database by running the function add_role, and only run it once!
Related Posts:
- Add Custom User Capabilities Before or After the Custom User Role has Been Added?
- How to Structure a New Role/Capability Scheme?
- How to allow Unfiltered HTML in a wordpress multisite install
- Limit role to one plugin [duplicate]
- Logout users upon login, based on caps/role?
- Menu page with minimum capability as ‘Subscriber’ doesn’t allow ‘Admin’ to access it?
- How to determine which capability to use?
- Allow contributor user role to perform copy operation PHP
- Buddy Press restrict the capability to edit users
- What is more secure checking capabilities of user or checking role of user in WordPress plugin development
- How do I create a custom role capability?
- Send user activation email when programmatically creating user
- Change default admin page for specific role(s)
- How to Change the Entire WordPress Admin panel Look and Feel?
- WordPress Capabilities: edit_user vs edit_users
- Allowing Custom Capability to Manage Plugin Options
- How to add more than 1 user role to sub-menu pages
- Odd behaviour with submenu link creation
- 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
- query users by role
- Hide plugin dashboard menu item for specific roles
- get_posts() not working when accessing with a custom user role
- Set different custom menu items for different user roles
- Prevent third party plugin’s admin page access based on user type
- You do not have sufficient permissions to access this page on a submenu
- wp_dropdown_roles() to replace option value = code
- Create a custom capability to allow an ‘Editor’ to edit only ‘Subscriber’ users
- Hide custom post type by user roles
- WordPress custom post type capabilities issue
- Check user’s role and store in variable
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- How to use gettext for specific user role
- Unable to access custom plugin backend
- How To Create A File Archive in WordPress?
- How can I change my assigned user role in WordPress 3.5.1?
- insufficient permissions; coding an action for plugin governed by custom capability
- Enable a role named ‘backend_user’ to access my plugin pages
- Add custom parameter for custom user role
- How to give custom roles the capability to edit one Menu instead of every Menu
- 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
- Adding admin for specific users
- New Users are saved with no role selected
- WordPress User Management Departmental Managers
- Plugin capabilities
- Remove default wordpress roles
- Update Option Stored in Multi-Dimensional Array
- check if Gutenberg is currently in use
- WordPress Plugin Development – Headers Already Sent Message
- Temporary capability for current_user_can()
- How to check user role without using current_user_can()
- Does WP fire delete_post when trashed posts are automatically deleted?
- Save metabox with multiple checkbox array
- Error with Custom Admin Screen in iframe Thickbox
- How to list events by category and month with plugin Event Organiser?
- Dropdown list of pages to get page id to store in plugin options
- What is the best way to overwrite /wp-admin/ms-delete-site.php
- Create a new page in a plugin
- Find source of notice / warning / errors efficiently
- create_users capabilities on a role on multisite
- Use wp_set_post_terms() instead of wp_insert_post()
- TinyMCE 4.7.11 custom styles using styleselect – what does the ‘attributes’ argument do?
- Modifying meta tags after doing ajax call in plugin
- Create a free scripts and styles template within a plugin
- Is there a way to list all actions registered by a plugin or theme?
- Elementor custom Query with ACF fields to show matching woocommerce products custom fields
- How to enqueue style in WordPress plugin from theme files?
- Bootstrap version conflict 3 with 4 for wordpress theme and plugin [closed]
- Where are $current_user->allcaps set?
- pre_get_post alter current post id
- 3rd Party Plugin dependency – how to correctly load classes
- Problems with cron
- How do I add a favicon that only shows during viewing of my plugin’s admin panel?
- Remove Default Blogroll Links via Plugin script
- Filter posts in pre_get_posts order by meta value date (desc or asc)
- How to display the category id along with category name on categories list?
- Can I Create a Second Admin Level User Role?
- Creating a folder structure
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- How to replace the existing metatag using the backend to insure a thumbnail image gets fetched when we share on social media?
- When setting styles to an extended block that was saved as a pattern, it doesn’t remove the style that was there
- Author Meta in Author URL Link
- Different style for specific rows in custom list table using WP_List_Table
- get_comment_meta() for a filter hook in a plugin
- form does not generate $_POST request
- Callback function quicktags that uses variable in start tag
- Font Awesome stopped showing icons, shows &# text instead [closed]
- WordPress Plugin Tool Tip Helpers
- How can I add the Post ID to Class Name in Jquery?
- How to show metabox just in post.php in admin?
- Can’t switch theme after activation
- plugin will not offer update even though a new version is available
- Grant access to admin menu?
- Enqueue Script in custom plugin before other
- How to remove a class [closed]
- Anyway to prevent admin from seeing other admin’s product?
- Bulk post approval and publishing doesn’t work