Last active
April 11, 2017 02:35
-
-
Save spivurno/ebbec9fa85cac9a314617719ef9bb6f1 to your computer and use it in GitHub Desktop.
Gravity Wiz // Gravity Forms // Hide Field on Entry Detail
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 | |
/** | |
* Gravity Wiz // Gravity Forms // Hide Field on Entry Detail | |
* http://gravitywiz.com/ | |
*/ | |
// update "123" to your form ID; "6" to your field ID. | |
add_filter( 'gform_field_content_123_6', function ( $field_content, $field ) { | |
if ( $field->is_entry_detail() ) { | |
$field_content = ''; | |
} | |
return $field_content; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment