WP Manifestindependent plugin directory
manifest / media / accesscode-file-downloader

AccessCode File Downloader

AccessCode File Downloader is a WordPress plugin that lets you protect your files with an access code. Users must enter a valid code to download files, ensuring secure and controlled distribution. Ideal for private resources, premium content, or confidential documents.

by Sam Banihit · github.com/sambanihit98/accesscode-file-downloader

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/sambanihit98/accesscode-file-downloader/archive/refs/heads/main.zip

Easily protect and distribute your files with an access code in WordPress.
Users must enter a valid code to download files, ensuring secure and controlled file distribution. Perfect for private resources, premium content, or confidential documents.


Features

  • Create a Custom Post Type for secure downloads.
  • Assign access codes and file URLs to each download.
  • Generate a download button shortcode for embedding anywhere.
  • Modal popup for access code input before download.
  • AJAX-based code validation for a smooth user experience.
  • Temporary secure download links with token system.
  • Admin columns showing Post ID and Shortcode, with copy-to-clipboard functionality.
  • Built-in Customizer support to style buttons (background, text, hover states).
  • Fully responsive and lightweight, no extra dependencies.

Installation

  1. Go to your WordPress installation directory.
  2. Navigate to /wp-content/plugins/.
  3. Create a folder named accesscode-file-downloader.
  4. Place the plugin file (accesscode-file-downloader.php) inside the folder.
  5. Go to your WordPress admin dashboard → Plugins → Installed Plugins.
  6. Activate AccessCode File Downloader.
  7. Create downloads from the AccessCode File Downloader menu.
  8. Add the access code and file URL for each file.
  9. Use the shortcode below to display the download button.

Usage

Shortcode

[acfd_button id="POST_ID" text="Download File" align="center"]

Parameters

  • id (required) – The Post ID of the file
  • text (optional) – Button label (default: "Download File")
  • align (optional) – Button alignment: left, center, right

Customizer

You can customize the appearance of the download button directly from the WordPress Customizer.

Go to:
Appearance → Customize → AccessCode File Downloader

Available Options

  • Button Background Color
  • Button Hover Color
  • Button Text Color
  • Button Text Hover Color

Changes are applied instantly across all buttons generated by the plugin.


Notes

  • Files must be located inside the WordPress uploads directory for security.
  • Download links are temporary and token-based, expiring automatically.
  • No page reload is required for validation — everything runs via AJAX.

Author

Sam Banihit
https://sam-banihit.vercel.app/