Login & Register Shortcodes
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
| Shortcode | Description |
|---|---|
movie_engine_login | Displays user login form |
movie_engine_register | Displays user registration form |
π 1. Login Shortcode (movie_engine_login)
Displays a frontend login form for users.
π Basic Usage
[movie_engine_login]
π¦ Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
redirect | string | β | Redirect URL after successful login |
custom_class | string | β | 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
| Parameter | Type | Default | Description |
|---|---|---|---|
redirect | string | β | Redirect URL after successful registration |
custom_class | string | β | 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 menumovie_engine_dashboardβ user dashboardmovie_engine_watchlistβ saved content
π Use Cases
- OTT platform login system
- Membership websites
- Subscription-based access
- Content restriction systems
