| 开发者 | rayetun |
|---|---|
| 更新时间 | 2026年11月1日 13:33 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pixelvault_document_library] in the Classic Editor, page builders, widgets, and theme templateswp_term_relationships). Physical files stay exactly where they are. Deleting a folder never deletes files.
Because folders use WordPress's own taxonomy tables, they stay fast as your library grows. In our testing with 10,000 media files, browsing folders and filtering the grid answered in a few milliseconds, and the folder sidebar's counts computed in well under a quarter of a second.
👩💻 For Developers
Full REST API and documented action/filter hooks.
🔌 REST API — Full CRUD at /wp-json/rayetun-medianest/v1/folders. Authenticate with X-WP-Nonce.
⚙️ Action hooks (selection):
rayetun_medianest_folder_created( $term_id, $folder_id, $args )rayetun_medianest_folder_renamed( $term_id, $new_name )rayetun_medianest_folder_moved( $term_id, $new_parent, $old_parent )rayetun_medianest_folder_deleted( $term_id, $folder_object )rayetun_medianest_folders_reordered( $ordered_term_ids )rayetun_medianest_attachment_assigned( $attachment_id, $term_ids, $context )rayetun_medianest_get_folders( $folders, $post_type ) — modify the folder listrayetun_medianest_auto_assign_target( $term_id, $attachment_id ) — override the upload target folderrayetun_medianest_smart_folders( $defs ) — register custom dynamic folders@wordpress/hooks) let you add items to the folder/image context menus and the bulk-action bar.
A full list of PHP and JavaScript hooks with examples ships in HOOKS.md inside the plugin.
/wp-content/plugins/.No. PixelVault uses virtual folders — it only stores a taxonomy relationship between your attachment and a folder label. Physical files are never moved. No URLs change.
Yes. PixelVault supports many-to-many assignment — the same file can appear in as many folders as you like.
Your files are completely unaffected. They remain in the media library; only the folder assignment is removed. Child folders are automatically moved up to the deleted folder's parent.
All folder data is removed cleanly on uninstall: taxonomy terms, term relationships, and the plugin's custom table are deleted. Your media files are never touched.
Yes. Full CRUD is available at /wp-json/rayetun-medianest/v1/folders. Authenticate with a standard X-WP-Nonce header.
Yes — all four are supported. Go to Settings → Tools → Import from Another Plugin, scan for importable plugins, and click Import. The original plugin's data is never modified or deleted.
Yes. The folder panel works inside Elementor's media modal, in both the Divi back-end and front-end builders, and the Gutenberg media uploader. There are also two dedicated Gutenberg blocks: the PixelVault Gallery block and the new PixelVault Document Library block.
The Document Library block turns any folder into a front-end file browser your visitors can search, navigate, and download from (including a Download-all ZIP). It is a Gutenberg block, so add it on any post or page from the block inserter, pick a folder, and choose a design preset. It is keyboard-accessible and fully responsive, and it respects your folder visibility rules, so restricted folders stay hidden from guests. Requires WordPress 6.5 or newer.
Yes. Use [pixelvault_document_library] on any page or post, including in the Classic Editor, page builders, widgets, and theme templates. It renders the same searchable file browser with the folder tree and downloads as the block. To start inside a specific folder, pass its ID: [pixelvault_document_library root="12"]. You can also set options, for example columns="4", layout="list", show_search="false", or per_page="30".
Post in the WordPress.org support forum. We aim to respond within 24 hours on business days.
[pixelvault_document_library], so it works in the Classic Editor, page builders, widgets and theme templates, not just the block editor. Point it at a folder with [pixelvault_document_library root="12"].[pixelvault_gallery], and the old tag keeps working for any pages that already use it.RayetunMediaNest_Folder_Service::ensure_folder() and find_folder() helpers for finding or creating folders programmatically (used by the importers and by add-ons), plus a new rayetun_medianest_dashboard_stats filter so add-ons can add tiles to the dashboard overview.rayetun_medianest_content_folder_types filter to extend Content Folders to custom post types, and rayetun_medianest_content_assigned action fired when an item is filed.rayetun_medianest_folder_object_types filter lets add-ons register the folder taxonomy for other post types, reusing the existing folder engine. Also adds rayetun_medianest_svg_upload_capability and rayetun_medianest_svg_allowed_elements filters.rayetun_medianest_after_analytics_panel action so add-ons can render extra sections inside the Analytics tab, and rayetun_medianest_delete_data_desc filter to extend the "Delete All Data on Uninstall" description. Registers a shared "pixelvault" block category via block_categories_all.rayetun_medianest_load_admin_assets lets companion plugins load the PixelVault folder sidebar inside their own media modals.