wp_sms_send()

Description

Returns the send SMS result.

This function can be used in your themes or plugins for sending SMS simply.

 

Parameters

wp_sms_send( $to, $msg, $is_flash = false );
  • $to (array) (Required) The receiver number or numbers.
  • $msg (string) (Required) The SMS text message.
  • $is_flash (boolean) (Optional) Only if you want to send flash SMS.

 

Example

Send SMS to multi numbers

$to = array('+1111111', '+1222222');
$msg = “Your Message”;
$is_flash = true; // Only if wants to send flash SMS
wp_sms_send( $to, $msg, $is_flash );