Extend Login Me Now by tapping into its WordPress actions and filters.
| Hook | Context | Arguments | Reference |
|---|---|---|---|
before_login_me_now_load |
Fires before the plugin finishes bootstrapping, ideal for overriding defaults early. | None | 【F:login-me-now.php†L42-L52】 |
after_login_me_now_load |
Runs after all service providers have been loaded. | None | 【F:login-me-now.php†L42-L52】 |
login_me_now_before_login |
Triggered just before establishing a WordPress session. | LoginDTO $dto, UserDataDTO $userData |
【F:app/Repositories/AccountRepository.php†L21-L51】 |
login_me_now_after_login |
Runs after authentication, useful for logging or analytics. | int $user_id, string $channel, UserDataDTO $userData, AccountRepository $repo |
【F:app/Repositories/AccountRepository.php†L43-L68】 |
login_me_now_popup_authenticate_redirection |
Allows overriding popup redirection for social logins. | string $redirect_uri |
【F:app/Repositories/AccountRepository.php†L53-L67】 |
login_me_now_before_registration |
Modify username or DTO data before WordPress user creation. | string $username, UserDataDTO $userData |
【F:app/Repositories/AccountRepository.php†L79-L102】 |
login_me_now_after_registration |
Hook into user onboarding workflows after registration. | int $user_id, UserDataDTO $userData |
【F:app/Repositories/AccountRepository.php†L95-L116】 |
login_me_now_before_profile_data_update |
Adjust profile information before it is saved. | int $user_id, UserDataDTO $userData |
【F:app/Repositories/AccountRepository.php†L109-L123】 |
login_me_now_after_profile_data_update |
React to completed profile updates (e.g., syncing avatars). | int $user_id, UserDataDTO $userData |
【F:app/Repositories/AccountRepository.php†L109-L123】 |
| Filter | Description | Reference |
|---|---|---|
login_me_now_dashboard_rest_options |
Inject additional settings defaults for the admin SPA. | 【F:app/Repositories/SettingsRepository.php†L33-L46】 |
login_me_now_settings_fields |
Register custom settings fields across modules and integrations. | 【F:app/Repositories/SettingsRepository.php†L115-L121】 |
login_me_now_menu_slug / login_me_now_menu_capability |
Customize the admin menu slug or capability requirement. | 【F:app/Boot/App.php†L56-L71】 |
login_me_now_admin_menu_icon |
Swap the dashboard icon or provide a brand-specific asset. | 【F:app/Admin/Enqueuer.php†L85-L103】 |
login_me_now_react_admin_localize |
Filter localized data sent to the dashboard JavaScript bundle. | 【F:app/Admin/Enqueuer.php†L97-L103】 |
login_me_now_login_link_expire |
Control lifetime for temporary login links. | 【F:app/Logins/LinkLogin/LinkLogin.php†L66-L82】 |
login_me_now_magic_link_expire |
Modify magic link expiration during generation and validation. | 【F:app/Repositories/MagicLinkRepository.php†L96-L210】 |
login_me_now_browser_token_not_before |
Adjust the JWT nbf claim for browser tokens. |
【F:app/Logins/BrowserTokenLogin/JWTAuth.php†L101-L142】 |
login_me_now_browser_token_expire |
Override browser token expiration timestamps. | 【F:app/Logins/BrowserTokenLogin/JWTAuth.php†L101-L142】 |
login_me_now_token_before_sign |
Inspect or modify JWT payloads before they are signed. | 【F:app/Logins/BrowserTokenLogin/JWTAuth.php†L118-L142】 |
login_me_now_token_before_dispatch |
Tweak the response data returned after token generation. | 【F:app/Logins/BrowserTokenLogin/JWTAuth.php†L129-L145】 |
login_me_now_algorithm |
Change the JWT signing algorithm (ensure it is supported). | 【F:app/Logins/BrowserTokenLogin/JWTAuth.php†L248-L287】 |
login_me_now_temporary_login_redirect_uri |
Override redirect destinations after temporary or magic link logins. | 【F:app/Controllers/MagicLinkController.php†L58-L74】【F:app/Logins/LinkLogin/Authenticate.php†L44-L52】 |
login_me_now_onetime_number_expire |
Customize expiration for one-time numbers. | 【F:app/Logins/BrowserTokenLogin/OnetimeNumber.php†L33-L60】 |
Use these hooks to integrate CRM systems, adjust UX, or implement additional security policies. Pair them with the Extending the Plugin guide for architectural patterns.