Add SMS Subscriber Form

Add a subscriber form to collect mobile numbers from visitors.

Add subscriber forms to your WordPress site to collect visitor mobile numbers for SMS notifications and campaigns.

Methods

There are four ways to add a subscriber form:

1. Gutenberg Block

  1. Create or edit a Post/Page
  2. Click Add Block
  3. Search for and select the WP SMS widget
  4. Configure title and description
  5. Publish or update

2. Widget

  1. Go to Appearance → Widgets
  2. Choose a widget area
  3. Click Add Block
  4. Select the WP SMS widget
  5. Update

3. Shortcode

Basic shortcode:

[wp_sms_subscriber_form title="SMS Newsletter" description=""]

With groups:

[wp_sms_subscriber_form title="SMS Newsletter" groups="1,2"]

With custom fields:

[wp_sms_subscriber_form title="SMS Newsletter" fields="age:Enter Your Age|country:Enter Your Country"]

NOTE

Groups must be created first in SMS → Groups and enabled in SMS → Settings → Newsletter with “Show groups” option.

Using Shortcode in Elementor

  1. Edit your page with Elementor
  2. Add a Shortcode widget
  3. Paste the subscriber form shortcode
  4. Publish or update

4. PHP Function

Basic usage:

wp_sms_subscriber_form([
    'title'       => 'SMS Newsletter',
    'description' => 'Subscribe to SMS updates.',
]);

With custom fields:

wp_sms_subscriber_form([
    'title'       => 'SMS Newsletter',
    'description' => 'Subscribe to receive latest news via SMS.',
    'fields'      => [
        'age'     => ['label' => 'Age', 'type' => 'number'],
        'country' => ['label' => 'Country', 'type' => 'text'],
    ]
]);

Shortcode Attributes

AttributeDescription
titleForm title displayed to users
descriptionOptional description text
groupsComma-separated group IDs (e.g., “1,2,3”)
fieldsCustom fields in format “name:label|name:label”

Last updated: December 28, 2025