Register & Login Form¶
If you don’t want to use FirebaseUI Web, you can create a custom login or registration form in order to authenticate with Firebase & WordPress.
This form only support log in though email, and you can style it freely.
// After logging in, you will be redirect to the homepage. // The redirect is optional. Default button text is "Login" [firebase_login button_text='Signin' redirect='/']
With this form, you can customize the registration form that will save extra fields such as phone number.
// Registration will extra fields: first name, last name phone number. // The redirect, extra fields and requried fields are optional. // Without those, it will only show email and password fields. [firebase_register required_fields='firstName,lastName,phoneNumber' extra_fields='firstName,lastName,phoneNumber' redirect='/'] If you want to send a verification email after user registers, you can add this option: send_email_confirmation=true Remember that if user doesn't verify their email, they won't be allowed to login next time.
This shortcode will show a Logout button after a user signs in.
// Logout Button // redirect after logging out and button_text are optional [firebase_logout redirect="/" button_text="Sign Out"][/firebase_logout]