What Are Auto-Login Links? #
Auto-login links are secure, one-time-use URLs that automatically log a user into WordPress when clicked. They’re ideal for use in GHL email campaigns or SMS messages.
How They Work #
- Each link contains a SHA-256 hashed token.
- Links expire after 15 minutes.
- Each link can only be used once.
- Expired tokens are automatically cleaned up.
Generating Links #
- From User Profile: Go to a user’s profile page and click “Generate Auto-Login Link” in the GHL section.
- Programmatically: Use the plugin’s auto-login API to generate links in your custom code or GHL workflows.
How Users Access Them #
The plugin checks for the ghl_autologin query parameter on every page load (WordPress init hook). If a valid token is found, the user is logged in and redirected.
