Category: Tips and Tricks
-
Make WP-Members fields in the users screen sortable
Here is a code snippet that you can use to make all of the WP-Members custom fields sortable in the Users > All Users screen. To use this code, add the entire code snippet to your functions.php file. Any field in the WP-Members Fields tab that you have selected to display on the Users Screen…
-
Set user expiration to a fixed date
The PayPal Subscription Extension operates by setting a user’s expiration date to today + the subscription period. For example, if the subscription period is 1 year, the expiration date will be one year from now. But what if you want all users to expire/renew on the same day of the year? Or if you would…
-
Add a datepicker to the registration form
Here is an example of how to implement a jQuery datepicker script for the registration form. Note that as of WP-Members 3.1.8, a date field type is available. However, this is an HTML5 field type and is not fully integrated into all browsers (most notably, it is a “development” option in FireFox). This example is…
-
Move the Username Field in the Registration Form
By default, the username field comes at the beginning of the form rows array. This field is not included in the plugin’s fields manager tab, so you can’t re-order it via drag-and-drop like the rest of the fields. This quick and dirty code snippet that will allow you to move the location of the username…