✨ A Festive Gift for You — Claim Your 25% Lifetime Discount Today! Use code: LIFETIME25 

User Roles

Estimated reading: 1 minute 886 views

Shortcode for Multiple User Roles

With the help of these shortcodes, You can create multiple shortcode conditions based on user roles.

[fma_user_role role="subscriber,editor"]
    [file_manager_advanced login="yes" roles="subscriber,editor" path="wp-content" hide="plugins" operations="upload" view="list" theme="light" lang ="en"]
  [/fma_user_role]
  [fma_user_role role="administrator"]
    [file_manager_advanced login="yes" roles="administrator" path="wp-content/plugins" operations="upload" view="list" theme="light" lang ="en"]
  [/fma_user_role]

And so on. Here, you can see two different conditions within closing shortcodes
[ fma_user_role ]. In condition one, we assign shortcodes only for subscriber and editor roles; in condition two, we assign shortcodes only for administrators. In the same way, you can create more conditions for user roles.

Share this Doc

User Roles

Or copy link

CONTENTS
Scroll to Top