ID : (int) ($user_id ?? 0); $account_email = $account_user instanceof WP_User ? (string) $account_user->user_email : ''; $account_phone = $account_user_id > 0 ? (string) get_user_meta($account_user_id, 'phone_number', true) : ''; $user_settings = class_exists('\\AKSRT\\Settings\\Settings') ? \AKSRT\Settings\Settings::get_all() : []; $sms_settings = class_exists('\\AKSRT\\Sms\\SMS') ? \AKSRT\Sms\SMS::get_instance()->get_provider_config() : []; $phone_available = !empty($user_settings['bind_phone']) && (($sms_settings['sms_sdk'] ?? 'null') !== 'null'); $phone_visible = $account_phone !== '' || $phone_available; $phone_label = $account_phone !== '' ? $account_phone : __('暂未绑定', 'aksrt'); $email_action = $account_email !== '' ? __('修改', 'aksrt') : __('绑定', 'aksrt'); $phone_action = $account_phone !== '' ? __('修改', 'aksrt') : __('绑定', 'aksrt'); $render_row = static function (string $icon, string $title, string $value, string $action, string $modal, string $icon_tone, string $action_tone, bool $interactive = true): void { ?>