PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.0
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.0
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
profile-builder / front-end / default-fields / headings / contact-info.php

contact-info.php in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 4.0.0, at front-end/default-fields/headings/contact-info.php

15 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
4 function wppb_default_contact_info_handler( $output, $form_location, $field, $user_id, $field_check_errors, $request_data ){
5 if ( $field['field'] == 'Default - Contact Info (Heading)' ){
6 $item_title = apply_filters( 'wppb_'.$form_location.'_default_heading_contact_info_'.$field['id'].'_item_title', wppb_icl_t( 'plugin profile-builder-pro', 'default_field_'.$field['id'].'_title_translation', $field['field-title'], true ) );
7 $item_description = wppb_icl_t( 'plugin profile-builder-pro', 'default_field_'.$field['id'].'_description_translation', $field['description'], true );
8
9 $ret_custom_field = '<h4>'.$item_title.'</h4><span class="wppb-description-delimiter '. apply_filters( 'wppb_fields_extra_css_class', '', $field ) .'">'.$item_description.'</span>';
10
11 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 );
12 }
13 }
14 add_filter( 'wppb_output_form_field_default-contact-info-heading', 'wppb_default_contact_info_handler', 10, 6 );
15