Multiple Roles for Members

You can allow multiple member roles in bnomei.klub.members.roles. Use this page when you want tiers mapped to roles.

Configuration

<?php

return [
  'bnomei.klub.members.roles' => ['member', 'pro'],
];

Assign roles by purchase

Use checkout hooks to promote or downgrade users based on the purchased price ID.

<?php

return [
  'hooks' => [
    'klub.subscribe:after' => function ($user, $session) {
      if ($session?->price_id === 'pro_monthly') {
        $user->changeRole('pro');
      }
    },
  ],
];
Kirby Klub is not affiliated with the developers of Kirby CMS. We are merely standing on the shoulder of giants.
© 2026 Bruno Meilick All rights reserved.