Skip to main content

Sign-up & Login

6 min readApplies to every PremiumPress theme · 12.x

Sign-up & Login

This guide covers how people join your site, what we ask them, and how they sign in.

You'll find these settings under Users in the admin sidebar: Users → Registration and Users → Verification & Login. Social login, reCAPTCHA and SMS providers are rows on the Settings page: Settings → Social login, Settings → APIs and Settings → SMS. The age check and cookie notice are under Settings → Consent popups. Remember to save after each change, so nothing gets lost.

Opening or closing registration​

Open Users → Registration.

  • Allow new registrations — switch this off to stop new sign-ups. Don't worry, existing members can still sign in. A green tick beside Registration in the sidebar means sign-up is open, and a red cross means it's closed.
  • Default role — the role every new member is given.
  • Business emails only — stops people signing up with free email providers such as Gmail, Yahoo and Outlook.

You'll find Members choose their password on Users → Verification & Login, under User Login. When it's on, members pick a password when they sign up and are signed straight in. When it's off, your site emails them a link to set one.

Preview the sign-up flow shows you sign-up just as a visitor sees it.

Checking new members​

Open Users → Verification & Login. Under User Verification:

  • Email verification — members need to click a link your site emails them before they can use their account.
  • SMS verification — members confirm their phone number with a 6-digit code your site texts them. You'll need to set up an SMS provider first (see below).

Each one is a separate check. If you switch both on, members need to do both.

Choosing what sign-up asks​

Open Users → Registration. Under Sign-up questions, set each question to one of these:

  • Required.
  • Optional (can skip), which adds a Skip for now link.
  • Don't ask, which leaves it out.

The questions depend on your theme, for example where someone lives, their phone number or a photo. Fewer questions make sign-up shorter. We always ask for an email, a password and agreement to your terms.

Locking or hiding account details​

On the same page, Account page fields lets you choose what members can change on their own account page. Each row can be Editable, Read-only (shown but locked) or Hidden.

The rows include Your name, Display name, Phone number, WhatsApp number and Residential address, plus Account type and Language on some themes. Nothing that's already saved is deleted, and you can still edit any member yourself. Email and password always stay editable.

Phone and WhatsApp numbers​

On many themes, sign-up can ask for a phone number. You can set that question as shown above. Members add a WhatsApp number on their account page. If you'd rather not have it, set the WhatsApp number row to Hidden.

To hide these numbers from visitors who aren't signed in, switch on the members-only contact options in Design → Listing Page Design. The buttons still show, but when a signed-out visitor clicks one, we ask them to sign in first. See Listing Page Layout.

Branding your login page​

Open Users → Verification & Login. Under User Login:

  • Themed login page — uses your branded sign-in screen. Switch it off if you'd prefer the normal WordPress login.
  • Redirect after login — where members land after signing in. Leave it blank to send them to the members area.

The pictures beside the sign-in form are in the Login & sign-up images box at the bottom of the same page. You can pick one picture for every screen, or a different one each for sign-in, sign-up, password reset, two-step sign-in and the verification screen. A tall, sharp image works best. If you leave them empty, we show a panel in your brand colours instead.

Adding social logins​

Open Settings → Social login. You'll see Google, Facebook, Apple, Microsoft and about 50 more.

  1. Create an app in the provider's developer console (for Google, that's the Google Cloud Console).
  2. For the redirect address, enter your site address followed by /?ppt_oauth=Google (or /?ppt_oauth=Facebook, and so on).
  3. Copy the Client ID and Client Secret it gives you.
  4. Tick the provider, paste both values into its boxes, and save.

A button only appears once the provider is ticked and both boxes are saved. To remove a button, untick the provider and save. Until a design is active, the login page shows example Google and Facebook buttons, so you can see how it will look.

Stopping spam sign-ups with reCAPTCHA​

reCAPTCHA protects sign-in, sign-up, password reset, comments and reports from bots. To get started, create a pair of keys for your domain on Google's reCAPTCHA site.

  1. Open Settings → APIs and find reCAPTCHA.
  2. Choose reCAPTCHA v2 or reCAPTCHA v3, to match your keys. v2 shows an "I'm not a robot" tick box, and v3 is invisible.
  3. Paste in the Site key and Secret key.
  4. Click Test keys. For v2, tick the box when it appears.
  5. When the test passes, switch on Enable service and save.

You can only switch reCAPTCHA on once the keys pass the test, so a wrong key can't lock you out. If it won't switch on, the usual reason is a mistyped key, the wrong version, or a key that isn't set up for your domain.

If Google later rejects your Secret key, we let forms through and show a warning in your admin, so your visitors aren't stuck. If you're ever locked out, your host or developer can switch reCAPTCHA off with a one-line change to your site's configuration file.

Text messages (SMS)​

Open Settings → SMS.

  1. Switch on Enable SMS.
  2. Choose your Provider: Twilio, Vonage, Bird or Plivo.
  3. Fill in Account SID / API key, Auth token / API secret, and From number / Sender ID. The Sender ID is the number or name your messages come from. Some countries only allow numbers. Bird only asks for an API key and the sender: create the key in Bird under Platform tools → API keys, and switch on the countries you text under SMS → Destinations.
  4. Save.
  5. Under Send a test, enter your mobile number with its country code (such as +1) and click Send test SMS.

If nothing arrives, check that you saved first, and have a look at the error shown.

Once SMS is working, you can switch on SMS verification under Users → Verification & Login, and SMS alerts for events here. Alerts text members about things such as a new private message or a paid withdrawal, and on freelance themes, new proposals and milestones. We only text members who have a phone number saved on their account.