Nevermind, I figured it out. The standard lost password action was getting in the way.
This commit is contained in:
@@ -34,7 +34,9 @@ final class LostPasswordForm extends LoginLocation {
|
||||
{
|
||||
parent::activate();
|
||||
add_action('lostpassword_form', [$this, 'render']);
|
||||
add_action('lostpassword_post', [$this, 'process_form'], 10, 1);
|
||||
if (!isset($_POST['woocommerce-lost-password-nonce'])) {
|
||||
add_action('lostpassword_post', [$this, 'process_form'], 10, 1);
|
||||
}
|
||||
}
|
||||
|
||||
public function process_form(WP_Error $errors):void {
|
||||
|
||||
Reference in New Issue
Block a user