Advanced File Manager Shortcode Addon to make shortcode work for frontend. Buy Now','file-manager-advanced')?>

Click here for demo

[file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" hide="plugins" operations="upload,download" block_users="5" view="grid" theme="light" lang ="en" upload_allow="all" upload_max_size="2G"]

[file_manager_advanced login="no" path="wp-content" hide="plugins" operations="upload,download" view="grid" theme="light" lang ="en" upload_allow="all" upload_max_size="2G"]

[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 many more conditions.

[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 many more conditions.

Note: user="1,2" here 1,2 are user ids.

Parameter Value Description Usage
login yes/no yes -> For Logged In users, no -> For Non Logged In users [file_manager_advanced login="yes"] - logged in users

[file_manager_advanced login="no"] - non logged in users or visitors

You can use given parameters for both shortcodes.
roles all / administrator, author all -> Allow all user roles , use: roles="all" [file_manager_advanced login="yes" roles="author,editor,administrator"]
path

(1)Any Valid Folder Path. Eg. wp-content/uploads

(2) % - Root Directory

(3) $ - Will generate logged in users personal folder of their username (unique) under location "wp-content/uploads/file-manager-advanced/users", use path="$" in shortcode.

(4) wp-content/uploads/file-manager-advanced/users - you can view and access all user's personal folders under this path.

Any valid folder path or suggested symbols like % and $. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content/uploads"]
Use given shortcode to auto assign their autogenerated folders to users. [file_manager_advanced login="yes" roles="author,editor,administrator" path="$"]
path_type inside/outside use "outside", if you want to use any directory (Folder) outside wordpress root directory, default: inside [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content/uploads" path_type="inside"]
Use "url" parameter with outside as url = "https://anyoutsidewebsite.com"
hide plugins will hide plugins folder [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins"]
operations all / mkdir, mkfile, rename, duplicate, paste, ban, archive, extract, copy, cut, edit, rm, download, upload, resize, search, info, help, empty all -> allow all operations, you can select according to your use [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download"]
block_users Any User ID like 1,5 Restrict any user to access file manager by assigning User's ID, Like block_users="1,5". Here 1 and 5 are the user's ids. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5"]
view list / grid The option 'list' will return the file manager files layout in list format and the option 'grid' will return the file manager files layout in grid format. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid"]
theme light / dark / grey / windows10 / bootstrap With this option you can assign any theme to file manager to change file manager user experience (UX). [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light"]
lang en or any other language code. At the bottom of this page, there is a list of all languages with codes. You can copy the code and use like lang ="en". [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" lang ="en"]
dateformat M d, Y h:i A Files creation or modification date format. You can change this formar as per your requirement. Example: dateformat : 'M d, Y h:i A' will return Mar 13, 2012 05:27 PM [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A"]
hide_path yes/no The option 'yes' will hide the real file path on preview. Default: no [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no"]
enable_trash yes/no The option 'yes' will display trash in file manager on front shortcode page and all the deleted files will go to the trash folder. You can restore the deleted files from Trash. Default: no [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no"]
height 500 This option is used to adjust in file manager height on front shortcode page. Default: blank (auto) [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height=""]
width 800 This option is used to adjust in file manager width on front shortcode page. Default: blank (auto) [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width=""]
ui With this option to can control the UI of the file manager. There are some options given.
1) files
2) toolbar
3) tree
4) path
5) stat
1) files -> This option will display only files (no toolbar, no left side bar) (use ui="files" in shortcode)
2) toolbar,tree,path,stat -> These options will display whole file manager ui like toolbar etc. Use: ui="toolbar,tree,path,stat". Also you can remove any option from the list as per your requirements. Default: blank (all)
[file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width="" ui="toolbar,tree,path,stat"]
allowed_upload 1) If you want to upload all file formats then use upload_allow="all" option.
2) If you want to upload specific mime types like "image/png" then upload_allow= "image/vnd.adobe.photoshop,image/png". You can add more mime type separated by comma(,). Click here for more mime types.
By using this option you can allow and restrict specific file mime types to upload. Default: all [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width="" ui="toolbar,tree,path,stat" upload_allow= "image/vnd.adobe.photoshop,image/png"]
upload_max_size If you want to restrict users to upload heavy files then use upload_allow="10M" option. Default: 0 (No Limit) Maximum upload file size. This size is per files. Can be set as number with unit like 10M, 500K, 1G. 0 means unlimited upload. By using this option you can restrict users to upload a specific size file. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width="" ui="toolbar,tree,path,stat" upload_allow= "image/vnd.adobe.photoshop,image/png" upload_max_size="2G"]

'Create new directory or folder', 'mkfile' => 'Create new file', 'rename' => 'Rename a file or folder', 'duplicate' => 'Duplicate or clone a folder or file', 'paste' => 'Paste a file or folder', 'archive' => 'Create a archive or zip', 'extract' => 'Extract archive or zipped file', 'copy' => 'Copy files or folders', 'cut' => 'Simple cut a file or folder', 'edit' => 'Edit a file like php, js, html, text etc', 'rm' => 'Remove or delete files and folders', 'download' => 'Download files and folders', 'upload' => 'Upload files', 'search' => 'Search files and folders', 'info' => 'Info of files and folders', ); ?> $d){ ?>

langs->locales(); ?> $code) {?>