=== TurkeySMS – SMS Notifications ===
Contributors: turkeysms
Tags: sms, woocommerce, turkey, otp, notifications
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 4.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Official TurkeySMS plugin for WordPress. Integrated solution for SMS notifications, WooCommerce orders, and secure OTP verification.

== Description ==

[TR]
**TurkeySMS** için resmi eklenti. WooCommerce siparişleri, kullanıcı kayıtları ve toplu kampanyalar için SMS bildirimleri göndermek için kapsamlı bir çözüm sunar. Bu sürüm, en son **API V4** teknolojisini destekleyecek şekilde modernize edilmiştir ve sitenizin güvenliğini artırmak için güvenli bir **Tek Kullanımlık Şifre (OTP)** sistemi sunar.

**Temel Özellikler:**
*   **WooCommerce Uyarıları**: Sipariş durumu değişiklikleri için müşterilere ve yöneticilere otomatik SMS.
*   **Gelişmiş OTP Sistemi**: Yeni kayıtları dinamik doğrulama kodlarıyla güvence altına alın.
*   **Toplu SMS Mesajlaşma**: Tüm kullanıcılara veya belirli gruplara (örn. yalnızca müşteriler) yayın kampanyaları.
*   **Gelişmiş Raporlama**: SMS teslimat durumunu (Başarılı/Hatalı) doğrudan panelden takip edin.
*   **Çoklu Dil Desteği**: Arapça, Türkçe ve İngilizce dillerinde tamamen yerelleştirilmiştir.

[EN]
The official plugin for **TurkeySMS**. It provides a comprehensive solution for sending SMS notifications for WooCommerce orders, user registrations, and bulk campaigns. This version is modernized to support the latest **API V4** technology and introduces a secure **One-Time Password (OTP)** system to enhance your site's security.

**Core Features:**
*   **WooCommerce Alerts**: Automatic SMS to customers and admins for order status changes.
*   **Advanced OTP System**: Secure new registrations with dynamic verification codes.
*   **Bulk SMS Messaging**: Broadcast campaigns to all users or specific groups (e.g., customers only).
*   **Advanced Reporting**: Track SMS delivery status (Success/Failed) directly from the dashboard.
*   **Multi-language Support**: Fully localized in Arabic, Turkish, and English.

[AR]
الإضافة الرسمية لـ **TurkeySMS**؛ توفر حلاً متكاملاً لإرسال إشعارات SMS لطلبات WooCommerce، تسجيل المستخدمين، والرسائل الجماعية. تم تحديث هذا الإصدار لدعم تقنيات **API V4** الحديثة، بالإضافة إلى نظام التحقق من الهوية (OTP) المتطور لزيادة أمان موقعك.

**أهم المميزات:**
*   **تنبيهات WooCommerce**: إرسال رسائل تلقائية للعملاء والإدارة عند تغير حالة الطلب (Processing, Completed, etc).
*   **نظام OTP المتطور**: تأمين عمليات التسجيل الجديدة برموز تحقق SMS متغيرة.
*   **الإرسال الجماعي (Bulk SMS)**: إرسال حملات إعلانية لكافة المستخدمين أو فئات محددة (مثل العملاء فقط).
*   **تقارير متقدمة**: متابعة حالة وصول الرسائل (ناجح/فشل) مباشرة من لوحة التحكم.
*   **دعم اللغات**: واجهة كاملة تدعم العربية، التركية، والإنجليزية.

== External services ==

This plugin connects to a third-party API service provided by **TurkeySMS** to deliver SMS and OTP messages.
- **Service Provider**: TurkeySMS (https://turkeysms.com.tr)
- **Data Sent**: User phone numbers, message content (OTP codes or order details), and site metadata required for delivery.
- **Terms of Service**: [https://turkeysms.com.tr/terms-of-use](https://turkeysms.com.tr/terms-of-use)
- **Privacy Policy**: [https://turkeysms.com.tr/kvkk-hakkinda](https://turkeysms.com.tr/kvkk-hakkinda)

== Installation ==

1. Upload the `turkeysms-sms-notifications` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to the **TurkeySMS** menu in the sidebar.
4. Enter your **API Key** and **Sender ID** in the Connection tab.
5. Configure your automation rules and templates.

== Frequently Asked Questions ==

= Do I need a TurkeySMS account? =
Yes, you need an active account and an API Key from [turkeysms.com.tr](https://turkeysms.com.tr).

= Does it support OTP for registrations? =
Yes, the new V4 engine includes a dedicated tab to enable and configure OTP security for all new users.

= Is it compatible with the latest WooCommerce? =
Absolutely. The plugin hooks into standard WooCommerce events to ensure reliability.

== Screenshots ==

1. The modern V4 dashboard with balance display.
2. Bulk SMS campaign builder with personalized tags.
3. Secure OTP configuration tab.
4. Detailed campaign delivery reports.

== Changelog ==

= 4.0.0 =
*   Modernized core to support TurkeySMS API V4.
*   Added integrated OTP verification for new registrations.
*   Implemented advanced reporting dashboard with AJAX refresh.
*   Added support for personalized tags ({user_name}, {site_name}).
*   Enhanced security with strict output escaping and input sanitization.
*   Complete localization in Arabic and Turkish.

= 1.0.0 =
*   Initial launch of the TurkeySMS notifications plugin.
