Changeset 2855635
- Timestamp:
- 01/27/2023 06:37:25 AM (3 years ago)
- Location:
- wp-sms-otp-login
- Files:
-
- 7 edited
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
trunk/includes/admin/login_register_action/class-wpsmstootp-login_register_action.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-sms-to-otp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-sms-otp-login/trunk/includes/admin/login_register_action/class-wpsmstootp-login_register_action.php
r2559092 r2855635 92 92 return sprintf( '%1$s <span style="color:silver">(id:%2$s)</span>%3$s', 93 93 /*$1%s*/ 94 isset($item['user_id'])? get_user_by('ID', $item['user_id'])->user_login : $item['user_id'],94 isset($item['user_id']) && $item['user_id']!= 0 ? get_user_by('ID', $item['user_id'])->user_login : substr($item['email'], 0, strrpos($item['email'], '@')), 95 95 /*$2%s*/ 96 96 $item['ID'], -
wp-sms-otp-login/trunk/includes/functions.php
r2810655 r2855635 1086 1086 * @author Christodoulou Panikos 1087 1087 * @email christodoulou.panicos@cytanet.com.cy 1088 * @param mobile_phone, text= 4digits, api_key1088 * @param mobile_phone, text=using sample text, api_key 1089 1089 * @return cost 1090 1090 */ 1091 1091 function wsol_sms_to_estimateSingleMessage($mobile_phone, $text, $api_key) { 1092 1093 1092 1094 1093 $bodyContent = array( 1095 1094 'sender_id' => 'SENDER', 1096 1095 'to' => $mobile_phone, 1097 'message' => $text,1096 'message' => strval($text). ' is your one time password to xxxxxxxxxxxxxxxxxxxxxxx' 1098 1097 ); 1099 1098 … … 1101 1100 $body = json_encode($bodyContent); 1102 1101 } 1103 1104 1102 1105 1103 $url = \WSOL_WP_SMS_TO_OTP\Gateway\wpsmstootp::getWsdl_link() . '/sms/estimate'; … … 1120 1118 ); 1121 1119 1122 1123 1120 $response = wp_remote_post($url, $args); 1124 1121 1125 1126 1127 1122 if (!is_wp_error($response) && 200 == wp_remote_retrieve_response_code($response)) { 1128 1129 1123 $body = json_decode(wp_remote_retrieve_body($response)); 1130 1124 return ($body->estimated_cost); -
wp-sms-otp-login/trunk/readme.txt
r2810655 r2855635 6 6 Tags: sms, wordpress, send, subscribe, message, register, notification, sms.to, subscribes-sms 7 7 Requires at least: 3.0 8 Tested up to: 6.1 9 Stable tag: 1.1. 38 Tested up to: 6.1.1 9 Stable tag: 1.1.4 10 10 Requires PHP: 5.6 11 11 WC requires at least: 3.0 12 WC tested up to: 7. 0.112 WC tested up to: 7.3.0 13 13 14 14 … … 80 80 81 81 == Changelog == 82 = 1.1.4 = 83 * Fix Estimation 84 * Show User for Register OTP Action 85 * Compatibility with WordPress 6.1.1 86 * Compatibility with WooCommerce 7.3.0 82 87 = 1.1.3 = 83 88 * Customized text for OTP message content -
wp-sms-otp-login/trunk/wp-sms-to-otp.php
r2810655 r2855635 4 4 * Plugin URI: https://wordpress.org/plugins/wp-sms-otp-login/ 5 5 * Description: A powerful SMS Messaging/Texting one-time-password login plugin for WordPress - This plugin is a fork from https://wordpress.org/plugins/wp-sms/ by VeronaLabs 6 * Version: 1.1. 36 * Version: 1.1.4 7 7 * Author: SMS.to 8 8 * Author URI: https://sms.to
Note: See TracChangeset
for help on using the changeset viewer.