Skip to main content

Reset password shortcode

Overview​

Add the [reset_password] shortcode to any page to create a password reset form. The shortcode automatically shows the right form based on what the user is doing.

For developers

See Developer reference for technical details about how the shortcode works, template loading, and customization options.

Basic usage​

Add the shortcode to any page:

[reset_password]

The shortcode automatically displays:

  • Stage 1: Email/username entry form
  • Stage 2: New password entry form (when user clicks reset link)
  • Stage 3: Success confirmation

Where to use it​

Pages (recommended): Create a dedicated password reset page

  1. Go to Pages > Add New
  2. Add the shortcode: [reset_password]
  3. Publish the page
  4. Configure it in Settings > Frontend Reset Password > Reset Password Page

Page builders: Works with Elementor, Divi, Beaver Builder, WPBakery, and Gutenberg

Posts and widgets: Also works in posts and widget areas

Styling​

The plugin includes default styles. You can add custom CSS to your theme to override them.

Main wrapper: #password-lost-form-wrap Forms: #lostpasswordform, #resetpasswordform

See Styling and CSS for more details.

Using in PHP templates​

If you need to add the form to a PHP template:

<?php echo do_shortcode( '[reset_password]' ); ?>

Troubleshooting​

Shortcode displays as text: Make sure the plugin is activated

Form doesn't display: Check for plugin conflicts or theme issues

Form doesn't work: Verify the Reset Password Page is configured in Settings

See Troubleshooting for more help.

What's next​