Description
Replaces the generic “invalid username/email” error shown at login with a clearer “Account is pending activation.” message when the credentials match a pending User Registration activation. Works with both the WordPress login form and the User Registration add-on’s login form.
Usage Notes
The gform_user_registration_pending_activation_expiration filter is temporarily raised to YEAR_IN_SECONDS so the lookup does not delete pending activations that are a few days old. Only invalid_username and invalid_email authentication errors are intercepted; other failures (e.g. wrong password) pass through unchanged.
Code
Please log in to view this code snippet.