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
- Create or edit a Post/Page
- Click Add Block
- Search for and select the WP SMS widget
- Configure title and description
- Publish or update
2. Widget
- Go to Appearance → Widgets
- Choose a widget area
- Click Add Block
- Select the WP SMS widget
- 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
- Edit your page with Elementor
- Add a Shortcode widget
- Paste the subscriber form shortcode
- 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
| Attribute | Description |
|---|---|
| title | Form title displayed to users |
| description | Optional description text |
| groups | Comma-separated group IDs (e.g., “1,2,3”) |
| fields | Custom fields in format “name:label|name:label” |
Related
- Manage Subscribers - View and manage subscribers
- Manage Groups - Create subscriber groups
Last updated: December 28, 2025