WordPress Forgot Password Form Without Plugin

WordPress Forgot Password Form Without Plugin
49 Views

Are you need simple Forgot Password form without plugin for your WordPress website? Yes, Then i have created [wc_forgot_pwd_form] shortcode with quick simple code. So you can put Forgot Password form anywhere like in Pages, Posts and Widget etc… Therefore you just need to put [wc_forgot_pwd_form] shortcode where you need login form. So you need to follow below steps.

Code for shortcode.

You need to put below code in theme’s functions.php file. If you have created child theme then add this in function file of child theme.

Code for Forgot Password

In this code i am validating form and Send mail for Forgot Password on wp action. Add it in functions.php file after above code. If this code will not work then change action wp to init.

Was this article helpful?
YesNo

Leave a comment

Your email address will not be published.