Shortcodes

[wpdm_login_form] – User Login Form

2 min read Updated Jan 26, 2026

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

ParameterTypeDefaultDescription
logostring""URL of image/logo to display above the login form.
redirectstringcurrent pageURL to redirect users after successful login.
regurlstringdefaultCustom registration page URL (for “Sign up” link).
note_beforestring""Custom text/HTML to display above the login form.
note_afterstring""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 redirect to send users to their dashboard after login
  • Add note_before to explain membership benefits
  • Create multiple login pages with different regurl values for different user flows
  • The form respects WordPress login security settings

Related

View Live Demo