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

ParameterTypeRequiredDefaultDescription
$numberstringYesThe phone number to enable quick reply for
$group_idint|boolNofalseThe 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);

Last updated: December 23, 2024