NEW YEAR MEGA DEALS

Only On Lifetime Plans

Image

Offer Ends In

-
DAYS
-
hrs
-
min
-
sec

Users

Estimated reading: 1 minute 862 views

Shortcode for Multiple Users

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

[fma_user user="1,2"]
    [file_manager_advanced login="yes" roles="subscriber,editor" path="wp-content" hide="plugins" operations="upload" view="list" theme="light" lang ="en"]
[/fma_user]
[fma_user user="3"]
    [file_manager_advanced login="yes" roles="administrator" path="wp-content/plugins" operations="upload" view="list" theme="light" lang ="en"]
[/fma_user]

And so on. Here, you can see two conditions within closing shortcodes [ fma_user ]. In condition one, we assign shortcodes only for user IDs 1 and 2; in condition two, we only assign shortcodes for user ID 3. In the same way, you can create more conditions for users.

Share this Doc

Users

Or copy link

CONTENTS
Scroll to Top