Suppose you want to highlight the user’s username in the sidebar status message. Here is an easy filter to do that. Continue Reading →
str_replace
Add a separator line of text in the registration form
This is an example of how to add a line of text in your form, ideal for creating separation for sections of a form, or to add specific instructions. Continue Reading →
Multiple Selection Checkboxes
Something that will probably become a full feature in the main plugin is multiple selection checkboxes. However, until that becomes a full feature, here is a code snippet that you can use to set this up in your existing installation.
Dynamic redirect to referrer in login
I have a challenge creating a title for this tutorial, so to describe what it covers, I recently had a question regarding how to dynamically put a redirect back to the original content into the link to the login page. In this instance, the user had customized how they were using the plugin and rather than having the login in place of blocked content as is the default, they had a link to the login page. Continue Reading →
Adding the WP display_name field to the WP-Members user profile update form
Recent versions of the plugin have improved support for some of the WP native fields such as nickname, user_nicename, and display_name. I will be continuing to improve support for these fields. Currently, if you want to add something like the Display Name field to the front end of the plugin, you need a little customization. This post will take you through adding that to the front-end user profile update.
This needs to be done in the user profile update and not at registration because WP bases these fields on data used in registration that is not available on the static form – the nickname, the username, and first/last name. This tutorial focuses on adding it to the user profile update, much like WP’s backend (which doesn’t set this at registration, either). Continue Reading →