Swift Download Locker Documentation by SWTE v1.0


Swift Download Locker

Created: 19/10/2015
By: SWTE
Email: support@swte.ch

Thank you for purchasing our plugin. If you have any questions that are beyond the scope of this help file, please feel free to email us via our user page contact form here.


Table of Contents

  1. Overview
  2. Usage
  3. Attributes

A) Overview - top

With the Swift Download Locker plugin you can hide your download links and enable download only for specific user roles, user capatibilities, or set expiry for the link

You can use internal or external(eg: Amazon S3, Dropbox, etc...) links as well


B) Usage - top

You can insert shortcodes from Visual Composer easily
Or you can use it as shortcode

[download_locker href="https://downloads.wordpress.org/plugin/akismet.3.1.5.zip" user_role="logged-in" expiry="+5 minutes"]Akismet[/download_locker]


C) Attributes - top

Attribute Default Type Description
href empty string string URL or file path to download. File path is relative to your WordPress home directory
user_role string empty string Comma separated list of user roles who can download the file
exclude_user_role string empty string Comma separated list of user roles who can NOT download the file
user_can string empty string Comma separated list of user capabilities who can download the file
user_can_not string empty string Comma separated list of user capabilities who can NOT download the file
expiry string empty string Set the expiry of the link, eg: 10 September 2020, +1 week, or +5 minutes, etc...
target string _blank The target attribute specifies where to open the linked document (_blank|_self|_parent|_top|framename)
class string empty string "Use this field to add a class name and then refer to it in your css file.
fallback string empty string Fallback URL for failed download attempts (if empty is the default 404 page)

SWTE

Go To Table of Contents