Category: Tips and Tricks
-
Use jQuery to create a Log In/Log Out menu link
This simple tutorial will help you create a Log In/Log Out menu link that will display a link to the login page when the user is not logged in and a link to log out when they are logged in. This has now been incorporated into the plugin as a standard feature – all you…
-
Automatically approve accounts from whitelisted domains
This article is a followup to “Restrict registration to specific email domains, IPs, or other data” that adds an element for moderated registration. In this case, moderated registration is used and registrants with emails accounts from whitelisted domains are automatically approved, leaving all others to be approved by an administrator. It should be noted that…
-
Restrict registration to specific email domains, IPs, or other data
WP-Members allows for customizing the registration form validation. This feature can be used to restrict registration based on the user’s information such as email address, IP address, or some other data point. This article covers how to do that and includes some basic examples. It should be noted that this only applies to WP-Members registration.…
-
Create a “free” category for all registered users when using the PayPal Subscriptions extension
When using the PayPal extension, any blocked content will require the user to have a valid and current subscription with an expiration date in the future. Otherwise, when viewing content, it would ordinarily be replaced by a message indicating they either have not completed payment or that their subscription has expired and they need to…
-
Change the WordPress new user notification using the wp_mail filter
I have shown in the past how to change the WordPress new user notification by rewriting the wp_new_user_notification() function, which is a pluggable function. But the transition from WP 4.2 to 4.3 showed why even pluggable functions can be problematic. So here is a way to do it with a filter that almost no one…