function wps_requirements_check($force_check = false)
{
    $check_okay = get_transient('wps_requirements_check');
    if (empty($force_check) && false !== $check_okay) {
        return $check_okay;
    }
    $deactivate_reason = false;
    if (!function_exists('aihr_check_aihrus_framework')) {
        $deactivate_reason = esc_html__('Missing Aihrus Framework');
        add_action('admin_notices', 'wps_notice_aihrus');
    } elseif (!aihr_check_aihrus_framework(WPS_BASE, WPS_NAME, WPS_AIHR_VERSION)) {
        $deactivate_reason = esc_html__('Old Aihrus Framework version detected');
    }
    if (!aihr_check_php(WPS_BASE, WPS_NAME)) {
        $deactivate_reason = esc_html__('Old PHP version detected');
    }
    if (!aihr_check_wp(WPS_BASE, WPS_NAME)) {
        $deactivate_reason = esc_html__('Old WordPress version detected');
    }
    if (!empty($deactivate_reason)) {
        aihr_deactivate_plugin(WPS_BASE, WPS_NAME, $deactivate_reason);
    }
    $check_okay = empty($deactivate_reason);
    if ($check_okay) {
        delete_transient('wps_requirements_check');
        set_transient('wps_requirements_check', $check_okay, HOUR_IN_SECONDS);
    }
    return $check_okay;
}
 public static function version_check()
 {
     $valid_version = true;
     if (!$valid_version) {
         $deactivate_reason = esc_html__('Failed version check');
         aihr_deactivate_plugin(self::BASE, WPS_NAME, $deactivate_reason);
         self::check_notices();
     }
     return $valid_version;
 }