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 knows about – wp_mail. Continue Reading →
Blog
Timestamp when a user updates their profile data
Here is a quick little snippet that will allow you to timestamp a user’s profile when they update their data. This will allow admins to know quickly how current the information is. Continue Reading →
Integrating with Easy Digital Downloads
Easy Digital Downloads is an incredibly popular plugin that allows you to create a digital product store using WordPress.
You can require users to be logged in to checkout in EDD, but that does not restrict a download link from being used when the user is not logged in. Restrictions can be put on the link in terms of number of times it can be downloaded and disable redownload, but that can lead to a poor user experience – being over protective can create problems for legitimate users while protecting what amounts to a “perceived” risk rather than real.
But you can integrate with WP-Members to force a user to be logged in to actually download the file. This way, even if the link is known and not expired, the user will be redirected to login if they attempt to download without being logged in.
WP-Members PayPal Extension 0.9.2 Update
Today version 0.9.2 of the WP-Members PayPal extension has been released. There are a number of enhancements in this version that make it worth updating. You must be a site member to download this extension, so please subscribe today and you can get this extension along with a number of others that provide enhanced functionality and features to our WP-Members plugin.Continue Reading →
How the plugin handles blocking content
The plugin filters what is in WP’s $content
variable during The Loop based on whether or not the user is logged in. In its most basic form, if the user is logged in, it allows the content to be displayed. If the user is not logged in, it empties this value and replaces it with the login and registration form.
Back in 2005-2006 when the plugin originated, this was a very simple process. Today, not so much. Today we have custom post types, visual page builders, plugins that are really a full blown application such as WooCommerce or BuddyPress, and countless other possibilities.
Continue Reading →