| 开发者 | hmbashar |
|---|---|
| 更新时间 | 2026年6月16日 02:19 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
smskora_register_providers filter hook.
Features
WordPress Login OTP
Add two-factor SMS verification to the default WordPress login form. After username and password are accepted, an OTP is sent to the user's saved phone number. Supports Password + OTP mode. Users without a saved phone number are allowed to log in normally and are reminded to add a phone number from their profile page.
{otp} — The generated OTP code.{order_id} — WooCommerce order number.{order_total} — Order total with currency.{customer_name} — Customer billing first name.{site_name} — Your WordPress site name.{user_name} — Display name of the user.smskora_send_sms( $message, $number, $args ) — Send a plain SMS.
smskora_send_otp( $number, $context, $args ) — Generate and send an OTP.
smskora_verify_otp( $number, $otp, $context ) — Verify a submitted OTP code.
smskora_get_option( $key, $default ) — Read a plugin setting.
Static Class API
\SMSKora\SMSKora::send_sms( $message, $number, $args )
\SMSKora\SMSKora::send_otp( $number, $context, $args )
\SMSKora\SMSKora::verify_otp( $number, $otp, $context )
Action Hooks
smskora_before_send_sms — Fires before an SMS is dispatched.
smskora_after_send_sms — Fires after an SMS is dispatched.
smskora_otp_sent — Fires after an OTP is sent successfully.
smskora_otp_verified — Fires after an OTP is verified successfully.
smskora_feature_registered — Fires when a feature is registered.
Filter Hooks
smskora_register_providers — Register custom SMS provider classes.
smskora_sms_message — Filter the SMS message text before sending.
smskora_otp_length — Filter the OTP code length.
smskora_otp_expiry — Filter the OTP expiry time in minutes.
OTP Security
password_hash() before being stored.smskora folder to /wp-content/plugins/ or install the ZIP from Plugins > Add New.No. You must supply your own credentials (API key, username/password, or auth token) from your chosen SMS provider account.
Custom API, BulkSMSBD, MimSMS, SMSNetBD, Twilio, and Vonage. More can be added via the smskora_register_providers filter.
Yes. Implement the SMSKora\Providers\ProviderInterface and register your class using the smskora_register_providers filter hook.
After a user enters a valid username and password, SMSKora checks whether their account has a saved phone number. If it does, an OTP is sent to that number and they must enter it before they are logged in. Users without a saved phone number bypass OTP and are shown a reminder to add one.
Yes. Enable the WooCommerce Order Notifications feature to send SMS on new orders, processing, completed, cancelled, failed, and refunded status events.
SMSKora adds a Phone Number field to the WordPress user profile page. Users can add or update their number there. Administrators can also edit any user's number from the Edit User screen.
Yes. All OTP codes are hashed using password_hash() before being saved. The plain code is never stored.
Only when the Delete Data on Uninstall option is enabled under SMSKora > Settings. When enabled, uninstalling the plugin will remove all plugin options and drop the custom database tables.
Yes. Use smskora_send_sms(), smskora_send_otp(), and smskora_verify_otp() helper functions, or call \SMSKora\SMSKora::send_sms() directly.
SMSKora does not collect or transmit data to any servers controlled by the plugin author. Your SMS data is sent only to the gateway provider you configure.
SMSKora connects to external SMS gateway APIs only when a site administrator configures an SMS provider and the plugin sends an SMS message, OTP message, order notification, login verification message, registration verification message, or balance-check request. The plugin does not send SMS data to servers controlled by the SMSKora plugin author. SMS data is sent only to the SMS gateway provider selected and configured by the site administrator. For configured providers, the following data may be sent to the selected provider:
This plugin can connect to the BulkSMSBD SMS gateway to send SMS messages and check account balance. API domains used by this plugin:
Data sent:This plugin can connect to the MimSMS SMS gateway to send SMS messages and check account balance. API domains used by this plugin:
This plugin can connect to the SMSNet BD / sms.bd SMS gateway to send SMS messages and check account balance. API domains used by this plugin:
Data sent:This plugin includes a Custom API provider that allows the site administrator to configure their own SMS gateway endpoint. External service used:
This plugin may include Twilio as an SMS provider option. If configured by the site administrator, it can connect to Twilio to send SMS messages. Data sent:
This plugin may include Vonage as an SMS provider option. If configured by the site administrator, it can connect to Vonage to send SMS messages. Data sent: