This WordPress plugin is only suitable for certain free digital products, such as free PPT templates, image materials, open-source software, etc.

Plugin Name: Digital Product Download

Features:

  • Regular resource information
  • Set information below the post editor
  • Allows adding up to 4 download links (cloud storage, direct link, protocol, magnet link)
  • Supports adding download agreements (download requires agreement to the terms)
  • Magnet link button supports automatic copying (clicking the button automatically copies the link; only the magnet link section supports automatic copying)
  • Supports widgets (needs to be added through widgets; if not added, it won’t display on the front end)
  • Can hide the software information section in posts
  • Can set permissions to allow guest downloads (by default, only logged-in users can download, except for magnet links)
  • Links for cloud storage, direct links, and protocols are hidden to somewhat prevent scraping
  • Supports encryption (requires inputting an answer to download)
  • Automatically identifies image formats; if the format is an image, it will automatically download (only supports cloud storage and direct link download buttons; may require cross-origin permissions)
  • When uninstalling the plugin, you can choose to delete all plugin fields (please back up the database first)

In fact, the links are generic. For instance, if your cloud storage has a default access password, you can use any link. The magnet link has added support for magnet and automatic copying functions, and the protocol download will first prompt a dialog.

Many features are implemented using JavaScript, so compatibility might be a bit poor. The code is open-source, with some code comments. It may not be compatible with your site and is only suitable for various free resource sites.

The download provided on this blog site is achieved using this plugin.