WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been looking at Gravity Forms, and whilst it's a great plugin, it's missing some features.

I really want the ability to limit how many forms can be created by a role:

Administrator - Unlimited
Editor - 50
Author - 25
Subscriber - 0

I've looked at countless plugins and scoured the Internet, I've found one plugin that limits posts very well, so if it is possible to manipulate the plugin to achieve this goal, that would be great.


P.s. The plugin I've been looking at is: "Bainternet Posts Creation Limits"

share|improve this question

Two things you can get cracking on right away are:

  1. Check out the developer documentation
  2. Browse the source code

You're looking for information on how the developers have coded the user permission check when they attempt to create a form. It might be a current_user_can() + capability combo, the use of custom filters & actions, or a combination of the two.

Once you know this, you can "hook" in with your own plugin & extend the checking process. This will involve determining how many forms the current user has already created, so again you'll need to refer back to the above, plus most likely an inspection of Gravity's database schema.

I don't think the plugin you've mentioned will come in handy since it deals with posts, whilst Gravity is something quite entirely different.

share|improve this answer
@TheDeadMagic Thanks for your help. Are you aware of any What exactly am I looking for? Are you able to help or make a recommendation for a developer? – David Howard Jun 23 '13 at 8:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.