function bca_user_account($user)
 {
     return Account::getUserAccount($user);
 }
Esempio n. 2
0
 /**
  * Get account for current user.
  */
 public static function getCurrentUserAccount()
 {
     $user = wp_get_current_user();
     if (!$user || !$user->ID) {
         return NULL;
     }
     $account = Account::getUserAccount($user->ID);
     return $account;
 }