spivurno
5/5/2015 - 1:07 PM

Gravity Perks // GP Preview Submission // Business Hours Integration

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 );