Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

Dave

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

share|improve this question

1 Answer 1

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

 
discard

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.