Skip to content

Commit 54c5969

Browse files
authored
gw-remove-post-fields-group.php: Added new snippet.
1 parent 63c9583 commit 54c5969

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* Gravity Wiz // Gravity Forms // Remove Post Fields Group from Form Editor
4+
* https://gravitywiz.com/
5+
*
6+
* Removes the "Post Fields" group from the form editor field palette. A great way to prevent accidental post creation
7+
* if you have clients managing their own forms.
8+
*/
9+
add_filter( 'gform_field_groups_form_editor', function( $field_groups ) {
10+
unset( $field_groups['post_fields'] );
11+
return $field_groups;
12+
} );

0 commit comments

Comments
 (0)