Quick Reply
Enable quick SMS reply functionality for numbers or groups in admin.
Enable quick SMS reply functionality directly from the WordPress admin dashboard.
Overview
The quick reply feature allows administrators to send SMS messages to specific numbers or groups without navigating to the main SMS sending page.
Usage
Step 1: Load the Template
First, load the quick reply template in your admin page:
echo \WP_SMS\Helper::loadTemplate('admin/quick-reply.php');
With reload option (refreshes after sending):
echo \WP_SMS\Helper::loadTemplate('admin/quick-reply.php', ['reload' => 'true']);
Step 2: Render Quick Reply Button
Use the function to display the quick reply button next to a phone number:
wp_sms_render_quick_reply('+12025550191');
Complete Example
<div id="wpwrap">
<?php echo \WP_SMS\Helper::loadTemplate('admin/quick-reply.php', ['reload' => 'true']); ?>
<p><?php wp_sms_render_quick_reply('+12025550191'); ?></p>
</div>
Parameters
| Parameter | Type | Description |
|---|---|---|
$number | string | Phone number to send SMS to |
reload | string | Set to 'true' to refresh page after sending |
Use Cases
- Display quick reply next to customer phone numbers
- Add SMS capability to custom admin tables
- Enable fast responses from order or user listings
Related
- How to Send SMS - Main SMS sending guide
- wp_sms_send - Programmatic SMS sending
Last updated: December 28, 2025