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 →
filters
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 →How to restrict categories to a defined user group
This concept is similar to the process outlined in How to add multiple user levels by category. However, the difference here is that we will restrict each category to a specific group (or level), but those users will not have access to the other categories.
In the other example, higher level users have access to lower level categories. In this example, each category is restricted to that specific group of users. Continue Reading →
Integrating Really Simple CAPTCHA
Really Simple CAPTCHA can be used with the WP-Members plugin in place of the default reCAPTCHA.