• 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 » Archives for Tips and Tricks

Tips and Tricks

PayPal Subscription Extension Bulk Extend Users Snippet

Chad Butler · Jun 15, 2014 ·

This post has been set to “draft” as this feature is now part of the extension and this snippet is no longer needed.

At present, the PayPal Subscription Extension provides for bulk expiring users, but not for bulk application of an expiration extension.

This code snippet will add a bulk extend process to the bottom menu selection.  The bulk action dropdown will include “Extend” and there will be a number of periods selection and then a selection for the time period.

If I have opportunity to improve on this process, it may make its way into the PayPal Subscription Extension.  For now, in order to make use of this functionality, add the following code snippet to your theme’s functions.php file. Continue Reading →

Configure the PayPal extension for two tiered pricing

Chad Butler · Jun 12, 2014 ·

Note that there is now a multi-tiered pricing example available here.

The new 0.4 version of the PayPal extension adds a number of new hooks, including some filters that, among other things, will allow for easier customization of multi-tiered pricing. This post will describe the basic code snippets needed to establish a two tiered pricing model.

This example makes the assumption that the user chooses between the two options at registration.

Continue Reading →

Block Posts After a Set Number of Page Views

Chad Butler · Jun 7, 2014 ·

On occasion, the question of how to only prompt to login after a specific number of page views or an amount of time has passed. While there is no real fool proof way to implement this type of process, there are some ways you can implement it if this is right for you.

This demonstration will focus on requiring a user to login on blocked content after a set number of pages have been viewed on the site.  Continue Reading →

Restrict content by user level

Chad Butler · May 16, 2014 ·

I have written code snippets before on how to restrict content by user level, but that particular code snippet is based on using categories as the user levels, with higher level users still being able to access lower level content. For example, Silver, Gold, and Platinum level users having access or not to categories of the same name.

But what if you have content that you need to block by level that is not necessarily in a category?  Or what if you are using pages that need the same level of restriction.

Here is a code snippet that will allow you to assign a “level” to any content – post or page, and then assign a user level for the users.  This example provides a working code snippet for applying a series of progressive levels (higher level users have access to lower level content).  The example begins with three generically named levels, these can be renamed and expanded or contracted as needed.Continue Reading →

How to restrict categories to a defined user group

Chad Butler · Apr 26, 2014 ·

This concept is similar to the process outlined in How to add multiple user levels by category. However, the difference here is that we will restrict each category to a specific group (or level), but those users will not have access to the other categories.

In the other example, higher level users have access to lower level categories. In this example, each category is restricted to that specific group of users. Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • Page 16
  • Interim pages omitted …
  • Page 28
  • 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