Skip to content

Commit 0971125

Browse files
authored
Create gppa-populate-unique-results-count.php
1 parent 1c68336 commit 0971125

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/**
3+
* Gravity Perks // Populate Anything // Populate Unique Results Count
4+
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
5+
*/
6+
// Update "123" to your form ID and "4" to your field ID.
7+
add_filter( 'gppa_get_input_values_123_4', function( $values, $field, $template, $objects ) {
8+
return count( $objects );
9+
}, 10, 4 );

0 commit comments

Comments
 (0)