8.13 [lcw_reset_password]

Reset WordPress user password and set/ remove tags bsed on the action

The [lcw_reset_password] shortcode renders a secure frontend password reset form for logged-in users. It includes optional features like success redirection and CRM tag manipulation (if license activated).

🔧 Shortcode Usage

Simple usage: Simply update the password, you can control the button text, and the success message.

[lcw_reset_password button_text="Update Password" success_message="Password updated!"]

Advanced usage: You can set or remove tags. If you need to add or remove multiple tags, add them in a comma-separated string. And you can redirect the user to a specified page when the password is updated successfully. See the example:

[lcw_reset_password 
    button_text="Change Password" 
    success_message="Password changed!" 
    redirect_to="/thank-you" 
    set_tags="new-password" 
    remove_tags="old-user"
]

🧩 Attributes

Attribute
Type
Description

button_text

string

The text to display on the submit button. Default: "Update Password"

success_message

string

Message shown on successful password update. Default: "Password updated successfully!"

redirect_to

string

Optional relative URL path to redirect the user after success. Leave blank for no redirection. caution: use '/thank-you' and don't use 'http://mydomain.com/thank-you'.

set_tags

string

Comma-separated tags to add to the user’s contact (premium only).

remove_tags

string

Comma-separated tags to remove from the user’s contact (premium only).

🚦 Behavior & Features

  • Only for logged-in users: Displays a warning if accessed while logged out.

  • Prevents admin/editor usage: Disallows password reset for users with administrator or editor Roles for security.

  • Password matching: Ensures both password fields match.

  • Password visibility toggle: Built-in toggle using Dashicons for better UX.

  • No logout after reset: Password is updated without logging the user out.

  • CRM Tagging (Premium):

    • Add/ remove tags on the associated contact.

Last updated