WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart

Tagged: secondary roles

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 2 months ago by Syam Mohan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 25, 2021 at 1:16 pm #111288
    Greta Lapinskaite
    Spectator

    I do not receive the secondary roles of the user,
    in this declaration wp_get_current_user()->roles i receive only primary role. How can I get secondary roles of the user?

    February 25, 2021 at 10:32 pm #111311
    Syam Mohan
    Keymaster

    Hi Greta,

    “roles” is an array, which contains all the roles.

    Thanks

    Syam

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions