Configure custom sms gateway in Login with phone number WordPress plugin

How to set up a custom gateway?

To use your own SMS service for sending OTP codes, the Login with Phone Number plugin allows you to configure a custom SMS gateway. Follow the steps below:

  1. From your WordPress dashboard, go to the Login with Phone Number settings page.
  2. Click on the Gateway tab at the top of the settings page.
  3. In the “SMS Default Gateway” dropdown, select Custom (Config your gateway).
  4. Choose your preferred API method: either POST or GET, depending on what your SMS provider supports.
  5. Enter your API request headers in valid JSON format. Example:
    {"Content-Type": "application/json"}
  6. Enter your API request body also in JSON format. Use the plugin’s dynamic variables to insert actual data. Example:
    {"message": "${message}", "phoneNumber": "${phone_number}"}

    ${message} will be replaced with the OTP message text, and ${phone_number} with the user’s number.
  7. Customize the content of your OTP message in the Custom API SMS Text field. Use ${code} to include the OTP code. For example:
    Hello dear, your login code is: ${code}

After saving the settings, your custom gateway will be used to send OTP messages through the configured API.

Configure custom sms gateway in Login with phone number WordPress plugin

Need more advanced features?

You can purchase the Pro version of the Login with Phone Number plugin from the link below and unlock full access to all premium features:

👉 Click here to buy the Pro version

Want to use your own SMS gateway but don’t know how to configure it?

Our team can help! If you have a local or special SMS provider, contact us and we’ll integrate it for you.

📩 Email: info@idehweb.com
💬 WhatsApp: Chat with us on WhatsApp

Leave a Reply

Your email address will not be published. Required fields are marked *