PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.2
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.2
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 4.0.2, at front-end/default-fields/default-fields.php

73 lines 4.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 // include individual modules
5 function wppb_include_default_fields_files() {
6 $wppb_generalSettings = get_option('wppb_general_settings', 'not_found' );
7 if ( ( $wppb_generalSettings != 'not_found' ) && ( $wppb_generalSettings['loginWith'] != 'email' ) )
8 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/username/username.php' );
9 else{
10 add_filter( 'wppb_output_display_form_field', 'wppb_remove_username_field_when_login_with_email', 10, 5 );
11 function wppb_remove_username_field_when_login_with_email( $bool, $field, $form_type, $role, $user_id ){
12 if( $field['field'] == 'Default - Username' )
13 return false;
14
15 return $bool;
16 }
17 }
18
19 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/first-name/first-name.php' );
20 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/last-name/last-name.php' );
21 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/password/password.php' );
22 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/password-repeat/password-repeat.php' );
23
24 // Default contact methods were removed in WP 3.6. A filter dictates contact methods.
25 if ( apply_filters( 'wppb_remove_default_contact_methods', get_site_option( 'initial_db_version' ) < 23588 ) ){
26 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/aim/aim.php' );
27 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/yim/yim.php' );
28 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/jabber/jabber.php' );
29 }
30
31 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/nickname/nickname.php' );
32 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/description/description.php' );
33 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/website/website.php' );
34 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/email/email.php' );
35 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/display-name/display-name.php' );
36 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/headings/name.php' );
37 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/headings/contact-info.php' );
38 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/headings/about-yourself.php' );
39 if ( wppb_can_users_signup_blog() ) {
40 include_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/blog-details/blog-details.php');
41 }
42
43 /* added recaptcha and user role field since version 2.6.2 */
44 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/recaptcha/recaptcha.php' );
45 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/user-role/user-role.php' );
46
47 /* added recaptcha and user role field since version 2.8.2 */
48 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/gdpr/gdpr.php' );
49 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/gdpr-delete/gdpr-delete.php' );
50
51 /* added email-confirmation field in main plugin since version 3.3.4 */
52 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/email-confirmation/email-confirmation.php' );
53
54 // added extra fields since version 3.8.1
55 if( !defined( 'WPPB_PAID_PLUGIN_DIR' ) || ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && defined( 'PROFILE_BUILDER_PAID_VERSION' ) ) ){
56
57 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/avatar/avatar.php' );
58 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/checkbox/checkbox.php' );
59 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/heading/heading.php' );
60 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/input/input.php' );
61 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/radio/radio.php' );
62 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/select/select.php' );
63 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/select2/select2.php' );
64 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/textarea/textarea.php' );
65
66 }
67
68 /* added turnstile field since version 3.15. */
69 include_once( WPPB_PLUGIN_DIR.'/front-end/default-fields/turnstile/turnstile.php' );
70
71 }
72 wppb_include_default_fields_files();
73