KupieTools Admin Gallery Download
WordPress plugin to give logged-in users a "Download" button next to any WordPress image gallery to easily download a .zip file of the images.
by Michael Kupietz · github.com/kupietools/ktwp-wp-plugin-admin-gallery-download
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/kupietools/ktwp-wp-plugin-admin-gallery-download/archive/refs/heads/main.zipReadme
KupieTools Admin Gallery Download
A WordPress plugin that adds a convenient download button after galleries for administrators, allowing them to easily download all gallery images as a ZIP file.
Features
- Adds a "Download Gallery Images" button after any WordPress gallery for admin users
- Creates a ZIP file containing all original images in the gallery
- Secure implementation with nonce verification
- Only visible to administrators - regular visitors won't see the download button
- Works with standard WordPress gallery shortcodes
- Styled button that integrates with WordPress admin interface
- Efficient file handling with proper cleanup of temporary files
How It Works
- When an administrator views a page containing a gallery, a download button is displayed after the gallery
- Clicking the button triggers an AJAX request with proper security verification
- The plugin creates a temporary ZIP file containing all original images from the gallery
- The ZIP file is sent to the browser for download
- The temporary file is automatically deleted after download
Security Features
- Only administrators can see and use the download functionality
- Uses WordPress nonce system to prevent CSRF attacks
- Validates image IDs to ensure only gallery images are included
- Proper file handling to prevent security issues
Use Cases
- Quickly download all images from a gallery for backup purposes
- Export gallery images for use in other applications
- Easily access original images when editing content
- Time-saving tool for WordPress site administrators
Installation
- Upload the plugin files to the
/wp-content/plugins/ktwp-admin-gallery-downloaddirectory - Activate the plugin through the WordPress admin interface
- View any page with a gallery while logged in as an administrator to see the download button
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.