Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WP Secure Links Documentation
- WP Secure Links helps you place secure links to downloadable files on WordPress Pages and Posts. After You install the plugin you can use the slink short tags to create secure links to your downloadable files.
- Creating A Secure Link
- 1. Create A Page or Edit an existing WordPress Page to add the Secure Download Links.
- 2. Use the “Slink" Short tag in WordPress Editor to create a secure link.
- [slink url=""]My Download File[/slink]
- where
- url – is Actual, Absolute Downloadable File URL.
- Optional Parameters Are
- class – css class
- id – css id
- name – Fake Name of File
- title – Title Tag
- onclick – any custom javascript function you want add to secure link onclick event
- users – Single username whom you want to allow access to the file or multiple comma seperated usernames
- roles – Single user role whom you want to allow access to the file or multiple comma seperated user roles
- message = Message you want to show in place of secure link for users who do not have access to the secure download link.
- Example With All Paramters (Allowing Access to 2 usernames in this case):
- [slink url="http://wpsecurelinks.sixthlife.net/sec_files/sampledoc.doc" name="My Secret Download File" id="afile" class="linktext" title="A Sample Download" onclick="myjavascriptfn(this);" users="firstuser,seconduser" message="Access to Selected Users"] My Download File [/slink]
- Example With All Paramters (Allowing Access to 2 user roles in this case):
- [slink url="http://wpsecurelinks.sixthlife.net/sec_files/sampledoc.doc" name="My Secret Download File" id="afile" class="linktext" title="A Sample Download" onclick="myjavascriptfn(this);" roles="firstrole,secondrole" message="Access to Subscribers and Contributors only"] My Download File [/slink]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement