get_error_message() ); * } * * @param string|string[] $to Phone number(s): an array, or a string * separated by commas or new lines. * @param string $message Plain text message. * @param array $args { * Optional. * * @type string $source Label for the log, e.g. "my_plugin". Default "api". * @type int $object_id Related object id. Default 0. * @type bool $async Queue in the background instead of waiting for * the API. Default false. * } * @return array|WP_Error On success: status ("queued" when Vibrate accepted * it, "pending" when queued in the background, * "retrying" when Vibrate did not answer and a retry * is scheduled), batch_key, run_id, recipients, * blocked, units. */ function vibrate_sms_send( $to, $message, array $args = array() ) { return \VibrateSMS\Messenger::send( $to, $message, $args ); } } if ( ! function_exists( 'vibrate_sms_is_configured' ) ) { /** * Whether an access key and a sender are set. */ function vibrate_sms_is_configured(): bool { return \VibrateSMS\Settings::is_configured(); } }