Created
March 15, 2022 16:40
-
-
Save zackkatz/80233bcc4aed12809205e9f22fb090cf to your computer and use it in GitHub Desktop.
GravityView - Disable the "Show Label" setting by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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