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 →
Add a helpful dialog above the password reset form
Suppose you want to add a little text above the password reset form that will help the user know what to do – in this case, put in your username and email and you’ll receive an email with a new password. Here is an easy way to do that with the wpmem_login_form filter. Continue Reading →
Working with Templates: a Basic Example
This will be the first in what I hope to be a series of posts on adding WP-Members elements directly to your theme templates (or custom templates). Being able to customize you theme at the template level will give you an additional layer of customization that will allow you to do almost anything with the plugin in terms of registration and post/page restriction.
This first example is just a basic look at the single post template. Continue Reading →
Email users when a new post is published
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
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.