• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Search for "short code"

Search Results for: short code

Installation

Download

You can download the zip package from the RocketGeek User Dashboard.

Install

This extension installs as a plugin.  To install, use one of the following two methods:

  • Go to Plugins > Add New and click “Upload Plugin” or…
  • Unzip the package and FTP transfer to your plugin’s folder.

Once the plugin is installed, you can go to Plugins > Installed Plugins to activate.

Activate the license key

When you purchase the extension, you will receive a license key that provides you a year of updates to the plugin.  You can retrieve your license keys on the rocketgeek.com user dashboard.  Activating your license key will activate the the plugin to receive updates when they are released.

If a license key is not installed or an installed license key is expired, the plugin will still notify you of available updates, but you will not be able to download them.

(If your license key is expired, you can simply renew it. You do not need to purchase a new license key to replace an expired key.)

Default folder on install

Upon installation, the plugin will attempt to create a default protected directory and set its folder permissions to 750.  If this fails, you may receive an error message.  If the error is that the plugin cannot create the default directory, you will need to check your folder permissions, in which case it is possible you will need to create this manually. (If you or the plugin cannot set the permissions to 750, note that this is not a problem for Apache. It is only necessary for nginx systems.)

Create an error page

Once installed, the first thing you want to do is create an error page.  This page is where a user will be directed in the event of an error when downloading (such as if a user is not logged in).  On this page, place the following shortcode:

[wpmem_dp_error]

Initial settings

Once this page is created, go to Settings > WP-Members and option the Downloads tab.  Use the selector for “Set Error Page Location” to select the page you create for download errors.

If you have any users you want to exclude from download tracking, enter their IDs separated by commas into “User IDs to exclude”.

Save your settings.

Upload files

Now you are ready to upload some files.  Go to Media > Download Protect and click “Add New”.  This will give you a dialog to upload a file.  Give the file a title (whatever identifies it to you) and click “Choose File” to open a file selector.  Once the file is selected, click “Upload File”.

You can also edit or delete files from this list.  To edit or delete a file, mouse over the file name and click the appropriate link from the hover menu.

Editing a file gives you the option to upload a new version of the file and/or change the file’s title.  Note that none of the file’s information changes – specifically, the file’s identifying key.  So any changes will be tracked in the statistics as the same as the previous file.  If your new version needs to be tracked separately, it should be loaded as a new file.

Note that the download link is dependent upon the file’s key.  So if you edit a file, you do not need to change the key.  If you delete and/or replace, you’ll need to either edit your download links or remove them.

Create links for users to download

Once files have been loaded you can create links for your users to download.  The list of files offers two options.  First it gives you the file’s direct link.  This can be used in the WP post editor when creating a link.  Alternatively, it gives you a shortcode that will generate a download link using the file information.  Either can be used.

Once files are loaded and some have been downloaded, you can view download statistics on the Dashboard > Download Tracking screen.

WP-Members Download Protect

The Download Protect plugin for WP-Members allows you to load files such as documents, PDFs, zip files, etc to a protected directory requiring the user to be logged in to access.

Files are uploaded to a separate folder within the main WP file upload folder structure and that folder is restricted from direct access. All files are served through a script-based process that prevents them from being accessed directly.  If a user is not logged in, they can be directed to an error page that requires them to log in.

Even if the direct link to the file within the file structure were known, the file cannot be accessed directly.

NEW: version 1.7.0 of the plugin now includes support for video.

This extension is available individually or with the WP-Members Pro Bundle.

Get the Plugin

WP-Members Download Protect is a premium plugin available in the store.

Best Value: this plugin is included in the WP-Members Pro Bundle package.

  • Sale! Pro Bundle

    Pro Bundle

    From $125.00 / year
    Select options This product has multiple variants. The options may be chosen on the product page
  • Download Protect

    Download Protect

    From $49.00 / year
    Select options This product has multiple variants. The options may be chosen on the product page

Documentation

  • Installation
  • License Key
  • Settings
  • Upload Files
  • Download Tracking
  • Shortcodes
  • Filter Hooks
  • WP CLI Commands
  • FAQs
  • Change Log
  • WP-Members User List

    The WP-Members User List plugin allows you to display lists of users on your site. Default parameters can be set in the plugin settings, but custom list parameters can be passed through the shortcode which allows you to set up multiple lists with different parameters.

    Features

    The User List plugin allows you to create user directories and lists that can be used in a variety of different ways. It can be used for searchable user directories but it can also be used to display groups of users for other purposes.  It is initiated by shortcode and each shortcode instance can have different settings, so you are not limited to just the defaults that you create in the plugin’s settings. There is a (very) basic demo on the WP-Members Demo Site.

    The output is also very flexible when using CSS. The demo also has some list instances that have completely custom output (the descriptions of how to implement those customizations are available on the support site).

    Note that you do need to have WP-Members installed and activated, but you do not need to be using content restriction.

    Get the Plugin

    User List is a premium plugin available in the store.

    Best Value: this plugin is included in the WP-Members Pro Bundle package.

    • Sale! Pro Bundle

      Pro Bundle

      From $125.00 / year
      Select options This product has multiple variants. The options may be chosen on the product page
    • User List

      User List

      From $49.00 / year
      Select options This product has multiple variants. The options may be chosen on the product page

    Documentation

  • Installation
  • Settings
  • Display the List
  • Profile Page
  • Front-end Editing
  • Stylesheets
  • Filter Hooks
  • Tips and Tricks
  • Change Log
  • Manage license
  •  

    Display form rows in columns

    Chad Butler · Oct 19, 2018 ·

    This tutorial will address the common question, “How do I layout the form in columns?”

    Let me say that this tutorial is one of those that is a “guideline,” not an exact science. That is due to the number of different variables that cannot be controlled.  So for best chance of success, I recommend that you start with the basic process exactly as in the example. Try to reproduce that first so that you understand what it is doing before moving on to something complicated.

    The following is a discussion of the the exact code snippets that I used in this demo (which also uses the code snippets for assigning placeholders to the fields and removing labels).

    Continue Reading →

    wpmem_user_has_access()

    Description

    Checks if a user has access to a given membership product.

    Parameters

    $membership
    (mixed) (required) The meta key of the membership being checked, or an array of membership meta keys.

    $user_id
    (integer) (optional) The user ID to check. If no user ID is passed, it will check for the currently logged in user.

    Return Value

    boolean (true|false) Returns true if the user has access, otherwise false.

    Example

    /**
     * This example checks if the currently logged in user has
     * access to the "my-membership" restriction. The 
     * result will be a true|false boolean.
     */
    $has_access = wpmem_user_has_access( 'my-membership' );
     
     
    /**
     * This example is similar to the above, but it checks a
     * specific user by user ID contained in $user_id.
     */
    $has_access = wpmem_user_has_access( 'my-membership', $user_id ); 

    Notes

    If checking multiple memberships, pass an array of the membership meta keys (slugs).  If the user has current access to any of the memberships, the function will return true.

    Changelog

    Introduced in version 3.2.0
    Version 3.2.3 reversed the order of arguments.

    Source

    wpmem_user_has_access() is located in /includes/api/api-users.php.

    • « Go to Previous Page
    • Page 1
    • Interim pages omitted …
    • Page 23
    • Page 24
    • Page 25
    • Page 26
    • Page 27
    • Interim pages omitted …
    • Page 53
    • Go to Next Page »

    Ready to get started?

    Join Today!

    © 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

    • butlerblog.com
    • WP-Members Support Subscription
    • Terms of Service
    • Privacy Policy
    • Refund Policy