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 →
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.
This tutorial will describe how to add a file upload field to the registration form and have the resulting file be sent with the admin notification email. Continue Reading →
Here is a slightly more advanced example of using the wpmem_register_form_rows filter to modify a form input element. In this case, we will take a regular dropdown select field and add the optgroup label tag to sections of it.
Note: for best results in understanding this customization, it is best to create a test field exactly as described in this example and using the example scripts as they are written. Once you have it working, then you can move to creating this process for your specific field. Continue Reading →
The question about integrating CAPTCHA into the login is coming up more frequently. With the wpmem_login_form_rows filter, the login form is infinitely flexible so you can add additional elements to the form.
I have put together an example of integrating the Really Simple CAPTCHA process into the current login process. The process is relatively simple, since the plugin contains support for Really Simple CAPTCHA already in the registration form. This customization will utilize some of the already available process in native to the plugin.Continue Reading →