<?php
function wppb_default_contact_info_handler( $output, $form_location, $field, $user_id, $field_check_errors, $request_data ){
	if ( $field['field'] == 'Default - Contact Info (Heading)' ){
		$item_title = apply_filters( 'wppb_'.$form_location.'_default_heading_contact_info_'.$field['id'].'_item_title', wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_title_translation', $field['field-title'] ) );
		$item_description = wppb_icl_t( 'plugin profile-builder-pro', 'default_field_'.$field['id'].'_description_translation', $field['description'] );

		$ret_custom_field = '<h4>'.$item_title.'</h4><span class="wppb-description-delimiter '. apply_filters( 'wppb_fields_extra_css_class', '', $field ) .'">'.$item_description.'</span>';

		return apply_filters( 'wppb_'.$form_location.'_default_heading_contact_info_'.$field['id'], $ret_custom_field, $form_location, $field, $user_id, $field_check_errors, $request_data );
	}
}
add_filter( 'wppb_output_form_field_default-contact-info-heading', 'wppb_default_contact_info_handler', 10, 6 );
