• 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 actions

actions

Set user expiration to a fixed date

Chad Butler · Nov 3, 2014 ·

The PayPal Subscription Extension operates by setting a user’s expiration date to today + the subscription period. For example, if the subscription period is 1 year, the expiration date will be one year from now.

But what if you want all users to expire/renew on the same day of the year? Or if you would like to just set a hard date far out in the future?  Yes, there is a way you can do such things.

There is an action hook that comes just after the user’s expiration date is automatically set – wpmem_exp_after_set_exp.  Using this action, you can create a custom function to change the expiration date that is automatically set by the extension to whatever you want.  Here are three simple examples. Continue Reading →

Set user forum access when using bbPress with the PayPal subscription extension

Chad Butler · Nov 2, 2014 ·

When using WP-Members with bbPress and the WP-Members PayPal subscription extension, there are some additional considerations for your setup to integrate these plugins smoothly and restrict forum access for paid users who have a valid expiration date.  

Continue Reading →

Capturing user data with custom hidden fields

Chad Butler · Sep 20, 2014 ·

This tutorial and code is an example of capturing user data with custom hidden fields. While the possibilities for how this can be used in customizing your application is very broad, this example will focus on capturing specific data about where a user registered and using that information to assign a custom user level. Continue Reading →

Confirm password at registration and have password meet specific criteria

Chad Butler · Apr 25, 2014 ·

I’ve shown other code snippets for similar things – password validation at registration and having a password meet specific criteria.  However, the password requirements example was geared toward a setup that was requiring this when a user changes their password (they were not allowing it to be set at registration).

So here is an example that combines the two of these elements at registration.  Continue Reading →

Use an invitation code with the PayPal subscription extension

Chad Butler · Jan 14, 2014 ·

When running the PayPal subscription extension, you might have some users you want to give a free account to. Or you might want to offer a discount to users with a specific code.  Here is are some code snippets that will allow you to validate a promotion code in the registration form and if it is valid, either bypass the PayPal process (for a free subscription) or apply a discount.  Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • 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