| 开发者 | meser10 |
|---|---|
| 更新时间 | 2026年11月4日 18:09 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
autocomplete="one-time-code", and an optional Web OTP line lets Android Chrome read it from the SMS.$sent = meser10_otp_send( $phone, 'my_form' ); // true or WP_Error
$ok = meser10_otp_verify( $phone, $code, 'my_form' ); // true or WP_Error
Filters: meser10_otp_normalize_phone (accept numbers outside Israel), meser10_otp_client_ip (real visitor IP behind a proxy or CDN), meser10_otp_before_send (return a WP_Error to refuse a send, e.g. after a failed CAPTCHA), meser10_otp_login_required, meser10_otp_checkout_required, meser10_otp_ajax_contexts. Actions: meser10_otp_sent, meser10_otp_verified.
Before you start
You need a Meser 10 account with an SMS balance and an approved sender. Every code sent uses one SMS from that balance. By default, numbers are accepted in Israeli mobile format (05X, +972 or 00972).
Not in this version. The code step is shown on the classic checkout, the [woocommerce_checkout] shortcode. Orders that need a code are refused when they come through the Store API (the Checkout block or direct API calls), so nobody can skip the step that way. The settings screen warns you if your checkout page uses the Checkout block.
You choose. By default they sign in with the password until a number is added, and their profile screen asks them to add one (confirmed with a code). Or you can refuse their sign-in until an administrator adds a number. A user cannot switch codes off by clearing their own number.
For users who need a code, XML-RPC requests with the normal password are refused, and so are password logins made through AJAX or REST. Application passwords keep working: they are separate credentials the user created on purpose, and they never open a browser session.
Codes are sent through the Meser 10 API's single-message function, which sends at once, without a campaign, list or schedule.
Yes. Use {code} for the code and {site} for the site name. If the text has no {code}, the code is added at the end.