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.
Continue Reading →Tips and Tricks
Customize form fields based on specific page or post criteria
This is a general discussion of how to customize the fields that are displayed in the registration form based on the page or the post that it is being displayed on.
There are some more advanced ways to approach this, but for most users, this will be the easiest to implement.
Continue Reading →
Capturing user data with custom hidden fields
This tutorial and code is an example of capturing user data with custom hidden fields. While the possibilities for how this can be used in customizing your application is very broad, this example will focus on capturing specific data about where a user registered and using that information to assign a custom user level. Continue Reading →
Remove all widgets except the WP-Members login from the sidebar
A frequent support question is how to prevent widgets from displaying if the user is not logged in.
This could potentially be a broad topic, depending upon what the user has in mind. But an approach that removes all widgets that are not the WP-Members login widget is a fairly straightforward process. Continue Reading →
Blocking Content from Builder Plugins
WP-Members has always focused on content contained in the WordPress $content variable. More recently, the popularity of builder plugins such as Page Builder by SiteOrigin or Elegant Builder from Elegant Themes has raised the issue of blocking content that is not necessarily stored in the same manner.
Note: as of version 3.0.4, the priority of WP-Members filter hooked to the_content has been changed to accommodate builder plugins. The priority is now 99, so unless another plugin sets its priority at 100 or higher, WP-Members will come after it (which is what you want). I’ve left the information in this post intact as it may be useful for some applications, but for most users, it will be unnecessary.
The post focuses on the general approach to blocking content from these types of plugins and includes code snippets you can use for the two plugins mentioned above.
Continue Reading →