Skip to content

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.

License

Notifications You must be signed in to change notification settings

kupietools/ktwp-wp-plugin-admin-gallery-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. When an administrator views a page containing a gallery, a download button is displayed after the gallery
  2. Clicking the button triggers an AJAX request with proper security verification
  3. The plugin creates a temporary ZIP file containing all original images from the gallery
  4. The ZIP file is sent to the browser for download
  5. 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

  1. Upload the plugin files to the /wp-content/plugins/ktwp-admin-gallery-download directory
  2. Activate the plugin through the WordPress admin interface
  3. 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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages