Starting from version 3.3.0, you can access your library directly from the WordPress back-end. Simply navigate to Media > Library Viewer. You can browse your files in the “Library” tab and customize the page title or access permissions in the “Settings” tab. This is perfect for administrators who need quick access without leaving the dashboard!
Read more in ADMIN PAGE DOCUMENTATION
You can use the Library Viewer for WooCommerce Add-on. It allows you to link specific folders to WooCommerce products, granting access automatically upon purchase.
Yes, by adding the Library Viewer File Manager Add-on. This enables front-end uploading, renaming, and deletion of files and folders based on user roles.
Yes, with Library Viewer Pro you can display any folder on the same server, even if it is outside your WordPress installation directory (e.g., above the public_html folder), as long as the server’s PHP has access to it.
This can be achieved using the lv_filter_global_abspath filter to change the default ABSPATH to the root path of the folder you want to display.
For more detailed instructions and code examples on how to set this up, please feel free to ask in the support forum. As you can see, I usually respond within a few hours to help you out!
Yes. By default, the plugin hides:
* Folders containing the string “hidden-folder” in their name.
* Files containing the string “hidden-file” in their name.
* All .php and .ini files.
Rename your files or folders accordingly to hide them. For more advanced control (including specific inclusion/exclusion lists), you can use Library Viewer Pro.
Yes, with Library Viewer Pro you can protect your files so they are only accessible through the plugin’s viewer, preventing direct URL access.
See this support topic: wordpress.org/support/topic/executable-pdf-file
To enhance security, you should add the following code to a .htaccess file inside the folder you want to protect:
<Files *.php>
deny from all
</Files>
You can test your own use cases in the DEMO
Library Viewer have been tested with TinyMCE (Classic Editor), Gutenberg, WPBakery, Visual Composer, Elementor and works fine!
Generally can be used, everywhere that shortcodes are accepted…
- Check your permalinks PLAIN PERMALINKS ARE NOT SUPPORTED. Please change your permalink from /wp-admin/options-permalink.php to something else.
- Check the folders’ and files’ read permissions (safe choice is to use 644)
- If you use the plugin Remove Uppercase Ascents and a CSS code like .library-viewer–folder{text-transform: uppercase;} maybe this cause the problem. The solution in this case is to use instead this CSS code: .library-viewer–folder h3 a{text-transform: uppercase;}
- Check if the file or folder has special characters in its name. Some are not supported as names of folders and files such as %. In this case, contact me via email or via support forum to find a solution!
- For other problems, you can open a support ticket in support forum
Yes. If you want to add text above the front-end folders or below the front-end files, you can create via FTP a file with name “include.php” in the FTP folder that you want texts to be shown in front-end.
HTML tags are allowed!
Your texts must be values of php variables ($text_at_beginning , $text_at_end respectively) as you can see below:
<?php
$text_at_beginning = "My text above front-end folders";
$text_at_end = "My text below front-end files";
?>
Also, you can use the hooks lv_folder_text_at_beginning and lv_folder_text_at_end respectively for this scope.
From 1.1.2, the Library Viewer’ file viewer supports all mime types that WordPress supports.
These that included in the function: wp_get_mime_types()
If you want to add support for mime types that are not included, use the WP filter: lv_mime_types to include them.
Read more in HOOKS DOCUMENTATION
Read also how to add PHP hooks in your WordPress Site in my blog
Yes, you need to use the Library Viewer’ file viewer (my_doc_viewer=”library-viewer”) and to add the following hook in your functions.php
add_filter('lv_mime_types', function(){
return array();
});
Yes. But only with plain CSS at the moment. So you can add your custom css from WP customizer (from Additional CSS)
Yes. I need new ideas to improve my plugin. Send it to me via email or via support forum
