Created
May 19, 2021 10:47
-
-
Save andrewlimaza/aa319e2f8ea8bff3c2b51da330bd84f1 to your computer and use it in GitHub Desktop.
Bypass password reset page to use default WordPress password reset when PMPro login page is set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Bypass the reset password page PMPro uses and use the default WordPress reset password page. | |
* This is useful if you're using another frontend login process and have the log in page set to this. | |
* Add this code to your site by following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
remove_action( 'login_form_rp', 'pmpro_reset_password_redirect' ); | |
remove_action( 'login_form_resetpass', 'pmpro_reset_password_redirect' ); | |
remove_filter( 'retrieve_password_message', 'pmpro_password_reset_email_filter', 20, 3 ); | |
remove_filter( 'wp_new_user_notification_email', 'pmpro_password_reset_email_filter', 10, 3 ); |
created plugin still didnt work, any ideas?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this still repair the reset password issue for PMPro?