Remove Post Fields Group from Form Editor

Removes the “Post Fields” group from the form editor field palette. A great way to prevent accidental post creation if you have clients managing their own forms.

Code

Filename: gw-remove-post-fields-group.php

<?php
/**
 * Gravity Wiz // Gravity Forms // Remove Post Fields Group from Form Editor
 * https://gravitywiz.com/
 *
 * Removes the "Post Fields" group from the form editor field palette. A great way to prevent accidental post creation
 * if you have clients managing their own forms.
 */
add_filter( 'gform_field_groups_form_editor', function( $field_groups ) {
    unset( $field_groups['post_fields'] );
    return $field_groups;
} );

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.