Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackkatz/80233bcc4aed12809205e9f22fb090cf to your computer and use it in GitHub Desktop.
Save zackkatz/80233bcc4aed12809205e9f22fb090cf to your computer and use it in GitHub Desktop.
GravityView - Disable the "Show Label" setting by default
<?php
/**
* Disables the "Show Label" setting by default for new Views.
*
* @return array $field_options Original array with `show_label` disabled.
*/
add_filter( 'gravityview_template_field_options', function( $field_options = array() ) {
$field_options['show_label'] = false;
return $field_options;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment