| 开发者 | itsmeshafat |
|---|---|
| 更新时间 | 2026年4月17日 23:49 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp-content/uploads/downloads directory.[frontend_file_explorer] shortcode.frontend-file-explorer text domain.[frontend_file_explorer]
(Renders the explorer starting at the root storage directory)
Advanced Shortcode Usage:
You can explicitly define the starting folder path relative to the root uploads/downloads directory by using the folder attribute:
[frontend_file_explorer folder="/course-materials"]
[frontend_file_explorer folder="/clients/acme-corp"]
upload_files capability.wp-content/uploads/downloads./wp-content/plugins/ directory.Yes. You can override the constants in a custom mu-plugin before File Explorer loads, or use filters/hooks (e.g. on wp_loaded) to adjust the base path/URL. This is an advanced customization and should be done carefully.
Yes. Each site manages its own uploads/downloads directory. You can network-activate the plugin for consistency across sites.
By default, allowed file types are defined via options during activation. You can adjust the allowed extensions by updating the plugin options (e.g., file_explorer_allowed_file_types).
The plugin is fully localization-ready and uses the frontend-file-explorer text domain. You can use tools like Loco Translate or Poedit to create translations and drop .mo files in the languages/ directory.
$_FILES superglobal before accessing elements.is_uploaded_file() validation to immediately after accessing tmp_name for improved security.$_REQUEST with $_POST for AJAX POST requests per WordPress coding standards.basename() with WordPress wp_basename() for i18n compatibility with multibyte characters.$_FILES upload fields individually (name, type, tmp_name, error, size).is_uploaded_file() guard against path injection on file uploads.ERR_INVALID_RESPONSE failures by safely building ZipArchive temp files and explicitly managing PHP output buffers and Safari download headers.WP_Filesystem, and reinforced esc_html__ translation domain strings and translators comments.frontend-file-explorer