Display a customizable WordPress login form with optional branding and redirect options. Integrates seamlessly with WPDM’s user management system.
Basic Syntax
[wpdm_login_form]
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
logo | string | "" | URL of image/logo to display above the login form. |
redirect | string | current page | URL to redirect users after successful login. |
regurl | string | default | Custom registration page URL (for “Sign up” link). |
note_before | string | "" | Custom text/HTML to display above the login form. |
note_after | string | "" | Custom text/HTML to display below the login form. |
Usage Examples
Basic Login Form
[wpdm_login_form]
With Custom Logo
[wpdm_login_form logo="https://yoursite.com/logo.png"]
Redirect to Dashboard After Login
[wpdm_login_form redirect="/my-downloads/"]
Multiple Login Pages
Link to a specific registration page:
[wpdm_login_form regurl="/members/register/"]
With Custom Notes
[wpdm_login_form note_before="Welcome back! Please log in to access your downloads." note_after="Forgot your password? Contact support."]
Complete Example
[wpdm_login_form logo="https://yoursite.com/logo.png" redirect="/dashboard/" regurl="/signup/" note_before="<p>Members get access to exclusive downloads.</p>"]
Form Features
- Username/Email Login – Supports both username and email address
- Remember Me – Optional persistent login
- Password Recovery – Built-in “Forgot Password” link
- Registration Link – Links to signup page
- AJAX Login – Smooth login without page reload
Tips
- Use
redirectto send users to their dashboard after login - Add
note_beforeto explain membership benefits - Create multiple login pages with different
regurlvalues for different user flows - The form respects WordPress login security settings
Related
- [wpdm_reg_form] – User registration form
- [wpdm_logout_url] – Logout link generator
- [wpdm_user_dashboard] – User downloads area