• 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

Email users when a new post is published – opt-in/opt-out version

Chad Butler · Jun 9, 2013 ·

This code snippet is an extension of the email users when a new post is published snippet.  Like that snippet, this one comes from user requests.

The difference here is that we will only email users who have requested specifically to be notified of new posts, and we’ll allow them to opt-out of that process at a later date by updating their profile.  Continue Reading →

Clean up the user profile of unused unwanted fields

Chad Butler · May 3, 2013 ·

The WP-Members plugin does not exercise any control over WordPress native fields as far as removing them from the User Profile.  The plugin only determines if you are using these in the front-end elements of the plugin (such as front-side registration and front-side user profile).  If you are not using a handful of these fields and would like to remove them from the User Profile (yoursite.com/wp-admin/user-edit.php), you can do that with a little bit of scripting in your functions.php file.  Here are some examples. Continue Reading →

Utility function to determine if a user registration is pending with the PayPal addon

Chad Butler · May 3, 2013 ·

For users that are diving into customizing their installation and using the PayPal addon, here is a utility function that will allow you to determine if a registered user is pending (i.e. they have not yet paid).  This can be useful for content display that you may intend for any registered user regardless of payment status, or some other use.

I use this function on the rocketgeek.com site to display information on which posts are free and which a only for paid premium users.  This information displays if the user is not logged in OR if they registered and are logged in but did not yet complete payment.  Continue Reading →

Email Admin When a User Updates Registration Data

Chad Butler · Apr 26, 2013 ·

Here’s a request I get from time to time – how can the admin receive email notification that a user updated their data, so I figured it is about time to put that together as a tutorial.

This one should be fairly straight forward and can be used cut-and-paste for the general features.  As usual, I’ve tried to comment the code so that you know what is happening where and more advanced users can build on this concept from there.  Continue Reading →

Validate a registration with a PIN

Chad Butler · Apr 16, 2013 ·

Here is a script idea you can use to validate a stored value that you might have for users (such as a PIN) against their registration data.  This example will assume that you only want to allow certain registrations for people who you already have data on (in this example, their name) and you want to validate that the user registering is that person.  This example will use PIN assigned to the user’s data that we have and the script will validate the PIN provided at registration or will halt registration. Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 18
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • 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