This plugin requires Paid Memberships Pro and Social Locker to be installed, activated, and configured.

Features

  • Temporarily give access to membership protected content to users who “like”, “follow”, or “+1” your social media account.
  • No registration required.

Installation

  1. Upload the pmpro-social-locker directory to the /wp-content/plugins/ directory of your site.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Configure settings by defining PMPROSL_FREE_LEVEL and PMPROSL_MEMBERSHIP_PERIOD_DAYS constants.

How it Works

When the plugin is activated, a cookie will be set for any visitor who “likes”, “follows” or “+1″s a social media account by “unlocking” your content by interacting with Social Locker. This cookie overrides the default Paid Memberships Pro access filter for a specific membership level, effectively giving your visitor access to member protected content without requiring them to register and create a user account.


Settings

The settings are controlled by 2 constants: PMPROSL_FREE_LEVEL and PMPROSL_MEMBERSHIP_PERIOD_DAYS.

PMPROSL_FREE_LEVEL controls which level to give access to. Only content specifically protected by this level will be given access to. It should be the Membership Level ID which can be found on the Membership Levels page in the WordPress dashboard.

PMPROSL_MEMBERSHIP_PERIOD_DAYS controls how long the user will have access for. It should be a number of days in the form of an integer.

Here’s a sample configuration. You can copy lines 3-5 to your theme’s functions.php file, a helper PMPro Customizations plugin, or your wp-config.php file and edit as needed:

This is a Free Add On.

Create a free account or log in to gain access to downloads and documentation.