# profile-builder/2.0.6/front-end/default-fields/headings/name.php

User Profile Builder – Beautiful User Registration Forms, User Profiles &amp; User Role Editor, version 2.0.6. 12 lines.

- Page: https://pluginprobe.com/plugins/profile-builder/2.0.6/code/front-end/default-fields/headings/name.php
- Raw: https://pluginprobe.com/plugins/profile-builder/2.0.6/raw/front-end/default-fields/headings/name.php
- Modified: 2014-10-21T13:22:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/profile-builder/2.0.6/code/front-end/default-fields/headings/name.php#L10-L20`.

```php
<?php
function wppb_default_name_handler( $output, $form_location, $field, $user_id, $field_check_errors, $request_data ){
	if ( $field['field'] == 'Default - Name (Heading)' ){
		$item_title = apply_filters( 'wppb_'.$form_location.'_default_heading_name_'.$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">'.$item_description.'</span>';
		
		return apply_filters( 'wppb_'.$form_location.'_default_heading_name_'.$field['id'], $ret_custom_field, $form_location, $field, $user_id, $field_check_errors, $request_data );
	}
}
add_filter( 'wppb_output_form_field_default-name-heading', 'wppb_default_name_handler', 10, 6 );
```
