Labour Day Logo
Flat 26% OFF
USE CODE: LABORDAY26

CLAIM 26% DISCOUNT NOW

AFM Beta testing

Advanced File Manager Beta v4.0.0 Is Live

Get early access. Test new features before anyone else. Join the beta and help shape what ships next.

Get the download link on your email.

Email

User Roles

Estimated reading: 1 minute 1706 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

Subscribe

×
Cancel