/**
  * Creates a new WordPress user with the given user info
  *
  * @param $user_info
  */
 public function create_new_wp_user($user_info)
 {
     if (empty($user_info['email'])) {
         Login_Manager::redirect_to_login_url_with_no_email_error($this->get_service_name());
     } else {
         $user_name = $this->get_new_user_name($user_info['name']);
         $password = sha1(openssl_random_pseudo_bytes(64));
         $user_id = wp_create_user($user_name, $password, $user_info['email']);
         update_user_meta($user_id, $this->submenu_slug . '_id', $user_info['user_id']);
         update_user_meta($user_id, 'first_name', $user_info['first_name']);
         update_user_meta($user_id, 'last_name', $user_info['last_name']);
         foreach (apply_filters('wpof_extra_user_meta_fields_' . $this->service_name, array()) as $meta_field_name) {
             update_user_meta($user_id, $meta_field_name, $user_info[$meta_field_name]);
         }
         $this->login_wp_user($user_id);
     }
 }
<?php

defined('ABSPATH') or die("No script kiddies please!");
?>

<div class="wpof-social-logins-container">
    <!--<h3 class="wpof-social-logins-title"><?php 
_e('Login using:');
?>
</h3>-->
    <?php 
foreach (\wp_oauth_framework\Login_Manager::get_registered_services() as $registered_service) {
    ?>
        <?php 
    $registered_service->display_login_button();
    ?>
    <?php 
}
?>
</div>