Users who configure to block custom post types will notice that you don’t get the meta box that WP-Members shows for blocking (or unblocking) posts and pages. While you can still use custom fields directly for custom post blocking/unblocking at the individual post level, it’s nice to have the meta box. So I’ve put together a code snippet for you to use to implement this on your custom post type editors.
This is a new method of blocking custom post types. There are two main differences over the method described here and the original method.
First, this method is a little more scalable. If you have multiple custom post types and want to set a blocking value for each, you only need to add to the settings array. Second, this method allows you to override the blocking value on an individual custom post type post than you have set for the custom post type as a group. This operates the same as regular posts and pages. It also takes advantage of the new extra settings that WP-Members version 3.0 offers.
This set of code snippets will add a list of sorting links to the top of the User List, a link for each of the fields displayed in the main list.
Please note that this is new and does have limitations. Currently, this only works with previous/next navigation as I have not put together a filter for paged navigation as that has more complex needs. [Read more…]
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 field to come after any other field in the registration form. [Read more…]
Sometimes, you might want to have a limited set of fields during the registration process, but would still like additional fields available for the user to complete in the user profile. If these are not required fields, the process is relatively simple and can be completed with a single filter function. [Read more…]