List of Parameters
Complete Guide to Shortcodes & Parameter List
Full Shortcode:
[file_manager_advanced id="afm_shortcode" 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= "all"]
Parameters
Below is the list of parameters of shortcodes.
| 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 visitorsYou 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="$"&lrsqb; |
| 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 specifix 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"] |