wp_sms_render_quick_reply()
Enable quick reply functionality for SMS responses in WordPress.
The wp_sms_render_quick_reply() function enables the quick reply feature for a given phone number or group. This allows users to quickly respond to SMS messages with predefined responses or custom text.
Syntax
wp_sms_render_quick_reply( $number, $group_id = false );
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
$number | string | Yes | — | The phone number to enable quick reply for |
$group_id | int|bool | No | false | The group ID if replying to a subscriber group |
Examples
Reply to a Single Number
wp_sms_render_quick_reply('+18055170000');
Reply to a Subscriber Group
wp_sms_render_quick_reply('+18055170000', 5);
Related
- wp_sms_send() - Function to send SMS messages
- wp_sms_subscriber_form() - Display subscriber form
Last updated: December 23, 2024