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) : ''; $account_oauth_new = $account_user_id > 0 && get_user_meta($account_user_id, 'oauth_new', 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'); $agreement = function_exists('aksrt_get_auth_agreement_view') ? aksrt_get_auth_agreement_view() : ['enabled' => false, 'required' => false, 'label_html' => '']; $email_verify_required = $account_email !== '' && !empty($user_settings['email_set_captch']); $reset_channel = class_exists('\\AKSRT\\Settings\\Settings') ? \AKSRT\Settings\Settings::reset_password_verification_type() : 'email'; $sign_in_available = !class_exists('\\AKSRT\\Settings\\Settings') || (!\AKSRT\Settings\Settings::close_sign() && !\AKSRT\Settings\Settings::close_signin()); $can_recover_password = $sign_in_available && ($reset_channel === 'email_phone' ? ($account_email !== '' || $account_phone !== '') : ($reset_channel === 'phone' ? $account_phone !== '' : $account_email !== '')); $recovery_target = $reset_channel === 'phone' ? $account_phone : ($account_email !== '' ? $account_email : $account_phone); $recovery_channel = $reset_channel === 'email_phone' ? '' : $reset_channel; $render_row = static function (string $icon, string $title, string $value, string $action, string $modal, string $icon_tone, string $action_tone, bool $interactive = true): void { ?>
' . esc_html($account_email) . ''); ?>
' . esc_html($account_phone) . ''); ?>