PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 2.7.1
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v2.7.1
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 2.0.7 All 340 releases
profile-builder / front-end / default-fields / default-fields.php

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

45 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // include individual modules
3 function wppb_include_default_fields_files() {
4 $wppb_generalSettings = get_option('wppb_general_settings', 'not_found' );
5 if ( ( $wppb_generalSettings != 'not_found' ) && ( $wppb_generalSettings['loginWith'] != 'email' ) )
6 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/username/username.php' );
7 else{
8 add_filter( 'wppb_output_display_form_field', 'wppb_remove_username_field_when_login_with_email', 10, 5 );
9 function wppb_remove_username_field_when_login_with_email( $bool, $field, $form_type, $role, $user_id ){
10 if( $field['field'] == 'Default - Username' )
11 return false;
12
13 return $bool;
14 }
15 }
16
17 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/first-name/first-name.php' );
18 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/last-name/last-name.php' );
19 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/password/password.php' );
20 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/password-repeat/password-repeat.php' );
21
22 // Default contact methods were removed in WP 3.6. A filter dictates contact methods.
23 if ( apply_filters( 'wppb_remove_default_contact_methods', get_site_option( 'initial_db_version' ) < 23588 ) ){
24 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/aim/aim.php' );
25 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/yim/yim.php' );
26 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/jabber/jabber.php' );
27 }
28
29 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/nickname/nickname.php' );
30 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/description/description.php' );
31 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/website/website.php' );
32 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/email/email.php' );
33 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/display-name/display-name.php' );
34 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/headings/name.php' );
35 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/headings/contact-info.php' );
36 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/headings/about-yourself.php' );
37 if ( wppb_can_users_signup_blog() ) {
38 include_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/blog-details/blog-details.php');
39 }
40
41 /* added recaptcha and user role field since version 2.6.2 */
42 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/recaptcha/recaptcha.php' );
43 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/user-role/user-role.php' );
44 }
45 wppb_include_default_fields_files();