Collective Limits for Roles

By default, role-based limits are applied per user. This means each user of the specified role can submit the form up to the specified limit.

Use this snippet to change this behavior so that the limit is applied collectively to all users of the specified role.

Code

Filename: gpls-collective-limits-for-roles.php

<?php
/**
 * Gravity Perks // Limit Submissions // Collective Limits for Roles
 * https://gravitywiz.com/documentation/gravity-forms-limit-submissions/
 *
 * By default, role-based limits are applied per user. This means each user of the specified
 * role can submit the form up to the specified limit.
 *
 * Use this snippet to change this behavior so that the limit is applied collectively to all
 * users of the specified role.
 */
add_filter( 'gpls_apply_role_limit_per_user', '__return_false' );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.