login-me-now

FAQs

How do I change the admin menu capability?

Filter login_me_now_menu_capability to return a different capability string (e.g., manage_options) before the plugin boots.【F:app/Boot/App.php†L56-L71】

Yes. Hook into login_me_now_settings_fields to add fields for custom copy, or filter the email body returned by MagicLinkRepository::email_magic_link() before calling wp_mail().【F:app/Repositories/MagicLinkRepository.php†L65-L118】【F:app/Repositories/SettingsRepository.php†L115-L121】

Where are browser tokens stored?

Token references are stored via BrowserTokenModel::insert() alongside their expiration timestamps, allowing validation and revocation during /browser-token/validate requests.【F:app/Logins/BrowserTokenLogin/JWTAuth.php†L101-L142】

Does the plugin support multisite?

The architecture uses WordPress core APIs (get_option, update_option, add_menu_page) which are multisite-aware. Ensure you network-activate the plugin and manage per-site settings accordingly.【F:app/Repositories/SettingsRepository.php†L24-L101】【F:app/Admin/Menu.php†L37-L70】

Can I disable Appsero tracking?

Opt-out through the Appsero opt-in UI or filter Appsero hooks if you maintain a custom build. Tracking initializes via Admin::init_appsero().【F:app/Admin/Admin.php†L17-L33】

How do I regenerate the JWT secret?

Delete the login_me_now_secret_key option or call JWTAuth::get_secret_key() after removing it; the plugin will generate a new random key automatically.【F:app/Logins/BrowserTokenLogin/JWTAuth.php†L248-L309】

What happens if a user already exists when logging in via Google or Facebook?

AccountRepository::register() updates the existing profile fields and respects role overrides when a user registers through social login, ensuring data remains in sync.【F:app/Repositories/AccountRepository.php†L95-L123】【F:app/Utils/User.php†L41-L74】