<?php

namespace ProudNerds\Helpers;

/**
 * User helper class.
 */
class User
{
    public static array $proudNerdsAdmins = [
        'pn-admin',
        'admin',
    ];

    /**
     * Returns true if the current username is in the $proudNerdsAdmins array.
     *
     * @return bool
     */
    public static function isProudNerdsAdmin(): bool
    {
        return in_array(wp_get_current_user()->user_login, static::$proudNerdsAdmins);
    }
}
