Set Minimum Length for Numeric Unique ID

Code

Filename: gpui-set-minimum-numeric-length.php

<?php
/**
 * Gravity Perks // Unique ID // Set Minimum Length for Numeric Unique ID
 * https://gravitywiz.com/documentation/gravity-forms-unique-id/
 */
add_filter( 'gpui_numeric_minimum_length', function() {
	// Update "3" to your desired minimum length.
	return 3;
} );

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.