Skip to content

Instantly share code, notes, and snippets.

@ChrisCree
Created March 4, 2015 19:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisCree/07748639a3a8f395a420 to your computer and use it in GitHub Desktop.
Save ChrisCree/07748639a3a8f395a420 to your computer and use it in GitHub Desktop.
Filter to enable the setting in Gravity Forms where users can hide the field labels. This is useful in conjunction with the new Gravity Forms placeholder functionality as of version 1.9+
<?php
// DO not copy opening PHP tag above
// Enable Gravity Forms setting to hide form labels
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment