24 $this->label = esc_html__(
'Section',
'gk-gravityview' );
26 parent::__construct();
28 add_filter(
'gravityview_field_entry_value_section', array( $this,
'prevent_empty_field' ) );
46 unset ( $field_options[
'search_filter'], $field_options[
'show_as_link'] );
49 $field_options[
'custom_class'][
'value'] =
'gv-section';
51 return $field_options;
new GravityView_Field_Section
Modify field settings by extending this class.
Add custom options for HTML field.
prevent_empty_field( $output='')
Prevent Sections from being hidden when "Hide Empty Fields" is checked in View settings.
if(empty( $created_by)) $form_id
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed