We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gpld-limit-to-current-month.php
1 parent 1fbf680 commit 6a25f15Copy full SHA for 6a25f15
gp-limit-dates/gpld-limit-to-current-month.php
@@ -0,0 +1,13 @@
1
+<?php
2
+/**
3
+ * Gravity Perks // Limit Dates // Limit Dates to Current Month
4
+ * https://gravitywiz.com/documentation/gravity-forms-limit-dates/
5
+ */
6
+// Update "123" to your form ID and "4" to your Date field ID.
7
+add_filter( 'gpld_limit_dates_options_123_4', function( $field_options ) {
8
+
9
+ $field_options['minDate'] = date( 'm/01/Y' );
10
+ $field_options['maxDate'] = date( 'm/t/Y' );
11
12
+ return $field_options;
13
+} );
0 commit comments