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

add_action

Simple registration invite code example

Chad Butler · Apr 7, 2013 ·

This article pre-dates the Invite Codes plugin extension. I am leaving it up because it is a nice, light-weight method of setting up a simple invite code process. However, if you just want something easy, check out the Invite Codes extension.

This is an example of adding a very simple invitation code to your registration process.  In this example, we will add an invitation code field to the form and set up a function to validate that code.  To keep it simple, the invitation code will be static (there will be only one code).  Later I will be publishing a more advanced example where you can read user specific codes from a database table, validate, and also mark the code as claimed.  Continue Reading →

Email users when a new post is published

Chad Butler · Mar 19, 2013 ·

This tip is a request from a user.  I like user requests – that makes it easier to deliver the kind of tutorials users are looking for instead of things I just come up with on my own.

This particular tip will address how you can automatically send an email to all users when a post is published or updated. Continue Reading →

Custom form field validation: numeric fields

Chad Butler · Mar 14, 2013 ·

WP-Members has its own built-in form field validation for things like usernames, email, and required fields.  But what if you need to validate other elements, such as testing to see if an entered value is a number?  Yes, the plugin framework allows for you to extend the form field validation to whatever you need.

Continue Reading →

Add password and email confirmation to the registration process

Chad Butler · Dec 12, 2012 ·

NOTE: As of plugin version 2.9.3, password, password confirm, and email confirm fields are included in the plugin’s default fields. All you need to do is enable them. Everything described in this post is now integrated into the plugin.

Some users like to have a confirmation process in their registration.  For example, having two email fields and comparing to make sure the user properly entered their email address.  This code snippet will show you how you can quickly add this feature with the addition of some custom fields in your form.

Continue Reading →

Disable RSS feeds

Chad Butler · Aug 20, 2012 ·

The WP-Members recommended WP Setting is to set RSS to summary. But if your site doesn’t need to have an RSS feed (such as a static site using only pages, or if you simply do not promote via RSS), it might be advantageous to turn of RSS.  Then that is one less thing you have to worry about protecting.  Here is how you can turn off RSS feeds for your site altogether.  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