-
-
Save zackkatz/75dc23389a1a42696f634812ac8ea7af to your computer and use it in GitHub Desktop.
GravityView - Always show the label 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 | |
/** | |
* Always show the field label by default. | |
* | |
* @param array $field_options Default field options for each field in View Configuration screen. | |
* | |
* @return array | |
*/ | |
add_filter( 'gravityview_template_field_options', function( $field_options ) { | |
$field_options['show_label'] = true; | |
return $field_options; | |
}, 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment