Authentication

Login & Register Shortcodes

Estimated reading: 2 minutes 22 views

The Authentication system allows users to securely create accounts and log in to access protected content such as premium movies, watchlists, playlists, and subscriptions.

These shortcodes provide fully styled frontend forms for login and registration, eliminating the need to use the default WordPress login pages.

πŸ“¦ Available Shortcodes

ShortcodeDescription
movie_engine_loginDisplays user login form
movie_engine_registerDisplays user registration form

πŸ”‘ 1. Login Shortcode (movie_engine_login)

Displays a frontend login form for users.

πŸ“Œ Basic Usage

[movie_engine_login]

πŸ“¦ Parameters

ParameterTypeDefaultDescription
redirectstringβ€”Redirect URL after successful login
custom_classstringβ€”Add custom CSS class

βš™οΈ Features

  • Secure login form
  • Username / Email support
  • Password field
  • Remember me option
  • Error handling (invalid login, wrong password)
  • Redirect after login
  • AJAX support (if enabled in theme/plugin)

πŸ”„ Behavior Notes

  • Automatically detects if the user is already logged in
  • If logged in β†’ can redirect or show a message
  • Works with:
    • Membership system
    • Pay-per-view
    • User dashboard

πŸ”Ή Example

[movie_engine_login redirect="/dashboard"]

πŸ“ 2. Register Shortcode (movie_engine_register)

Displays a frontend registration form for new users.

πŸ“Œ Basic Usage

[movie_engine_register]

πŸ“¦ Parameters

ParameterTypeDefaultDescription
redirectstringβ€”Redirect URL after successful registration
custom_classstringβ€”Add custom CSS class

βš™οΈ Features

  • User registration form
  • Username field
  • Email field
  • Password creation
  • Password confirmation
  • Validation (email exists, password match)
  • Automatic login after registration (optional behavior)
  • Redirect after signup

πŸ”„ Behavior Notes

  • Prevents duplicate email registration
  • Works with the WordPress user system
  • Can integrate with:
    • Referral system
    • Membership plans
    • Welcome notifications

πŸ”Ή Example

[movie_engine_register redirect="/dashboard"]

πŸ”— Authentication Flow

User visits the login/register page
↓
User logs in or creates an account
↓
User redirected to dashboard or previous page
↓
Access granted to protected content

πŸ” Access Integration

These shortcodes are required for:

  • Membership system
  • Pay-per-view access
  • Watchlist & history
  • Referral system
  • User dashboard

🎯 Best Practice Setup

Create Pages

  • Login Page β†’ add:

[movie_engine_login]

  • Register Page β†’ add:

[movie_engine_register]

Navigation Integration

Use with:

[movie_engine_user_menu]

πŸ‘‰ Automatically shows login/register for guests

🎨 Styling

  • Fully styled by plugin
  • Supports dark/light UI
  • Customizable via:
    • custom_class
    • CSS overrides

⚠️ Important Notes

  • Requires WordPress user registration to be enabled
  • Ensure:
    • Settings β†’ General β†’ β€œAnyone can register” is ON
  • Email notifications depend on WordPress configuration

πŸ”— Related Shortcodes

  • movie_engine_user_menu β†’ user menu
  • movie_engine_dashboard β†’ user dashboard
  • movie_engine_watchlist β†’ saved content

πŸš€ Use Cases

  • OTT platform login system
  • Membership websites
  • Subscription-based access
  • Content restriction systems
Share this Doc

Login & Register Shortcodes

Or copy link

CONTENTS