Image Limits, Auto Plan Assignment & Custom Plan Cards

Hey team, back again with another batch of questions :grinning_face_with_smiling_eyes:

I’ve got three related questions about the Memberships add-on. I prefer to build things myself via custom code (deployed through Code Snippets), so pointers to the right hooks, filters, or internal methods would be hugely appreciated.

1. Gating the image upload limit per membership plan

I want free-tier listings capped at a lower photo count (e.g. 1 photo) than paid-tier listings (e.g. 10 photos), tied to the user’s active membership plan.

  • Is there a supported filter/hook to dynamically change the image attribute’s max-file count based on the current user’s plan, rather than one global limit for the whole listing post type?

2. Auto-registering users into a Free plan after email verification

I already have free-plan auto-assignment working on two subsites via the hivepress/v1/models/user/register hook, firing at registration. I’d like to delay this until after email verification instead, so unverified accounts don’t hold an active plan.

  • Is there a dedicated hook/action for successful email verification? I couldn’t find one in the hook reference.

  • If not, is verification status stored somewhere reliable (a user meta key, etc.) so I could hook into a more generic “user updated” action and check it there?

3. Pulling membership plan data for a custom pricing card

I’ve already built fully custom listing cards from scratch (attributes, images, titles etc. via server-side rendering, not the default templates), and I want to do the same for membership plans: a custom pricing card with plan name, description, price, and a “Buy/Select Plan” button.

  • What’s the correct way to query plan data server-side? A standard post query against the plan post type, or is there a model/helper method you’d recommend, similar to how listings have their own? I want to pull Plan name, description, price, etc.

  • What generates the “Buy Plan” button URL/action? A route I can construct manually from the plan ID, or does it depend on session/cart state that’s harder to replicate outside the default templates?

For context: I am on a multisite network, Memberships add-on active on multiple subsites with different plans per site, all custom logic deployed via Code Snippets network-wide.

Thanks in advance!

Hi @astro,

In regards to number 2 on your list, I actually asked the same question a while ago. You can find the solution here:

I hope this helps!

Cheers,
Chris :victory_hand:

1 Like

Hi,

Your request is related to a premium product. Please add the license key to the account settings to access forums for your purchased products and get the Premium Support badge on your profile. If the support for your purchase has expired, please consider renewing it for assistance Renew Support | HivePress