It seems like I just released 3.1.1 and here we are with 3.1.2 getting ready to go out the door. I’m so excited about the 3.1 series of releases because we are really starting to expand the plugin and its ability for you to customize simply and easily. If you haven’t updated to 3.1.x, you are missing out. Be sure to take a look at what was done in 3.1.0 and 3.1.1. I’ve added new field types, an official (an expanding) series of API functions, new and expanding filters, and a ton of fixes.
3.1.2 is expanding on that process. It will also begin laying the ground work for a new feature where you will be able to identify additional registration forms, although this will take a few releases before everything is in place – I’m laying the needed ground work gradually so that we reduce the possibility of blow-ups with a major change.
What’s New in 3.1.2?
Probably the biggest news is I am finally jettisoning the [[wp-members]] shortcode tag altogether. While the tag will still work, it’s use will be recorded in your WP debug log if you are logging notices. Every possible use of the [[wp-members]] shortcode has been replaced by new tags that offer more features and are more flexible. If you still use the old tag, please replace it with the new alternative. Here’s a list if you are not keeping up:
- [[wp-members page=”user-profile”]] => [wpmem_profile]
- [[wp-members page=”register”]] => [wpmem_form register]
- [[wp-members page=”login”]] => [wpmem_form login]
- [[wp-members field=”any-field”]] => [wpmem_field field="any-field"]
- [[wp-members status=”in”]] => [wpmem_logged_in]
- [[wp-members status=”out”]] => [wpmem_logged_out]
- [[wp-members page=”tos”]] => [wpmem_tos] (3.1.2 ONLY! If you haven’t updated to 3.1.2 beta, don’t use this yet!)
All of these have been replaced a long time ago except for TOS which is new in 3.1.2 and allows us to officially mark the shortcode function for this tag as deprecated.
The API that was officially introduced in 3.1.1 is already expanding. wpmem_login_url() will now accept a redirect_to parameter. The wpmem_profile_url() will accept an action parameter so that you can retrieve a specific action URL (such as http://mysite.com/update-my-settings/?a=getusername).
Additionally, there is a new API function wpmem_user_pages() that will return an array of URLs for the special pages login, register, and user profile.
I also added user counts to the user screen that indicates the number of users for the various screens such as not activated or not exported. It’s important to note that these are stored as a transient and although the transient is updated on a fairly regular basis, I chose to use a transient instead of live updating to avoid unnecessary database overhead. So keep in mind that these numbers will not be “real-time” but will be close to it.
WP-Members 3.1.2 is available now on WordPress.org.