Skip to content

Commit a30de6b

Browse files
committed
gptos-terms-only-modifier.php: Added snippet to only display terms with the TOS checkbox.
1 parent f887336 commit a30de6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gp-terms-of-service/gptos-terms-only-modifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Instruction Video: https://www.loom.com/share/d69c48bea2d1429ab019310d2bc6c1e6
99
*/
1010
add_filter( 'gform_merge_tag_filter', function ( $value, $merge_tag, $options, $field ) {
11-
if ( $field['type'] != 'tos' ) {
11+
if ( $field['type'] !== 'tos' ) {
1212
return $value;
1313
}
1414

@@ -17,7 +17,7 @@
1717
return $value;
1818
}
1919

20-
if ( $merge_tag != 'all_fields' ) {
20+
if ( $merge_tag !== 'all_fields' ) {
2121
$value = '<ul><li>' . $value . '</li></ul>';
2222
}
2323

0 commit comments

Comments
 (0)