Gravity Perks // GP Preview Submission // Business Hours Integration
<?php
/**
* Gravity Perks // GP Preview Submission // Business Hours Integration
*/
add_filter( 'gform_merge_tag_filter', function( $value, $input_id, $modifier, $field, $raw_value ) {
if( $field->type == 'business_hours' ) {
$value = GFBusinessHours::display_entry_field_value( $value, $field );
}
return $value;
}, 10, 5 );