PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | config/settings/profile.php +96 -96 4.3.94.4.8 View file →
@@ -1,96 +1,96 @@
1 -<?php
2 -return apply_filters(
3 - 'lp/settings/profile',
4 - apply_filters(
5 - 'learn-press/profile-settings-fields/general',
6 - array(
7 - array(
8 - 'title' => esc_html__( 'General', 'learnpress' ),
9 - 'type' => 'title',
10 - 'id' => 'lp_profile_general',
11 - ),
12 - array(
13 - 'title' => esc_html__( 'Avatar Dimensions', 'learnpress' ),
14 - 'id' => 'avatar_dimensions',
15 - 'default' => array( 250, 250, 'yes' ),
16 - 'type' => 'image-dimensions',
17 - ),
18 - array(
19 - 'title' => esc_html__( 'Cover Image Dimensions', 'learnpress' ),
20 - 'id' => 'cover_image_dimensions',
21 - 'default' => array( 1290, 250, 'yes' ),
22 - 'type' => 'image-dimensions',
23 - ),
24 - array(
25 - 'title' => esc_html__( 'Enable login form', 'learnpress' ),
26 - 'id' => 'enable_login_profile',
27 - 'default' => 'no',
28 - 'type' => 'checkbox',
29 - 'desc' => esc_html__( 'If the user is not logged in, enable login from profile.', 'learnpress' ),
30 - ),
31 - array(
32 - 'title' => esc_html__( 'Enable register form', 'learnpress' ),
33 - 'id' => 'enable_register_profile',
34 - 'default' => 'no',
35 - 'type' => 'checkbox',
36 - 'desc' => esc_html__( 'If the user is not logged in, enable register from profile.', 'learnpress' ),
37 - ),
38 - array(
39 - 'title' => esc_html__( 'Enable default fields', 'learnpress' ),
40 - 'id' => 'enable_register_first_name',
41 - 'default' => 'no',
42 - 'type' => 'checkbox',
43 - 'checkboxgroup' => 'start',
44 - 'desc' => esc_html__( 'First name', 'learnpress' ),
45 - ),
46 - array(
47 - 'id' => 'enable_register_last_name',
48 - 'default' => 'no',
49 - 'type' => 'checkbox',
50 - 'checkboxgroup' => '',
51 - 'desc' => esc_html__( 'Last name', 'learnpress' ),
52 - ),
53 - array(
54 - 'id' => 'enable_register_display_name',
55 - 'default' => 'no',
56 - 'type' => 'checkbox',
57 - 'checkboxgroup' => 'end',
58 - 'desc' => esc_html__( 'Display name', 'learnpress' ),
59 - ),
60 - array(
61 - 'title' => esc_html__( 'Custom register fields', 'learnpress' ),
62 - 'id' => 'register_profile_fields',
63 - 'default' => array(),
64 - 'type' => 'custom-fields',
65 - 'options' => array(
66 - 'name' => array(
67 - 'title' => esc_html__( 'Name', 'learnpress' ),
68 - 'type' => 'text',
69 - 'desc_tip' => esc_html__( 'Display field name.', 'learnpress' ),
70 - 'placeholder' => esc_html__( 'Display name', 'learnpress' ),
71 - ),
72 - 'type' => array(
73 - 'title' => esc_html__( 'Type', 'learnpress' ),
74 - 'type' => 'select',
75 - 'options' => array(
76 - 'text' => esc_html__( 'Text', 'learnpress' ),
77 - 'textarea' => esc_html__( 'Textarea', 'learnpress' ),
78 - 'checkbox' => esc_html__( 'Checkbox', 'learnpress' ),
79 - 'url' => esc_html__( 'URL', 'learnpress' ),
80 - 'number' => esc_html__( 'Number', 'learnpress' ),
81 - ),
82 - ),
83 - 'required' => array(
84 - 'title' => esc_html__( 'Required?', 'learnpress' ),
85 - 'type' => 'checkbox',
86 - ),
87 - ),
88 - 'desc' => esc_html__( 'Custom fields to the registration form.', 'learnpress' ),
89 - ),
90 - array(
91 - 'type' => 'sectionend',
92 - 'id' => 'lp_profile_general',
93 - ),
94 - )
95 - )
96 -);
1 +<?php
2 +return apply_filters(
3 + 'lp/settings/profile',
4 + apply_filters(
5 + 'learn-press/profile-settings-fields/general',
6 + array(
7 + array(
8 + 'title' => esc_html__( 'General', 'learnpress' ),
9 + 'type' => 'title',
10 + 'id' => 'lp_profile_general',
11 + ),
12 + array(
13 + 'title' => esc_html__( 'Avatar Dimensions', 'learnpress' ),
14 + 'id' => 'avatar_dimensions',
15 + 'default' => array( 250, 250, 'yes' ),
16 + 'type' => 'image-dimensions',
17 + ),
18 + array(
19 + 'title' => esc_html__( 'Cover Image Dimensions', 'learnpress' ),
20 + 'id' => 'cover_image_dimensions',
21 + 'default' => array( 1290, 250, 'yes' ),
22 + 'type' => 'image-dimensions',
23 + ),
24 + array(
25 + 'title' => esc_html__( 'Enable login form', 'learnpress' ),
26 + 'id' => 'enable_login_profile',
27 + 'default' => 'no',
28 + 'type' => 'checkbox',
29 + 'desc' => esc_html__( 'If the user is not logged in, enable login from profile.', 'learnpress' ),
30 + ),
31 + array(
32 + 'title' => esc_html__( 'Enable register form', 'learnpress' ),
33 + 'id' => 'enable_register_profile',
34 + 'default' => 'no',
35 + 'type' => 'checkbox',
36 + 'desc' => esc_html__( 'If the user is not logged in, enable register from profile.', 'learnpress' ),
37 + ),
38 + array(
39 + 'title' => esc_html__( 'Enable default fields', 'learnpress' ),
40 + 'id' => 'enable_register_first_name',
41 + 'default' => 'no',
42 + 'type' => 'checkbox',
43 + 'checkboxgroup' => 'start',
44 + 'desc' => esc_html__( 'First name', 'learnpress' ),
45 + ),
46 + array(
47 + 'id' => 'enable_register_last_name',
48 + 'default' => 'no',
49 + 'type' => 'checkbox',
50 + 'checkboxgroup' => '',
51 + 'desc' => esc_html__( 'Last name', 'learnpress' ),
52 + ),
53 + array(
54 + 'id' => 'enable_register_display_name',
55 + 'default' => 'no',
56 + 'type' => 'checkbox',
57 + 'checkboxgroup' => 'end',
58 + 'desc' => esc_html__( 'Display name', 'learnpress' ),
59 + ),
60 + array(
61 + 'title' => esc_html__( 'Custom register fields', 'learnpress' ),
62 + 'id' => 'register_profile_fields',
63 + 'default' => array(),
64 + 'type' => 'custom-fields',
65 + 'options' => array(
66 + 'name' => array(
67 + 'title' => esc_html__( 'Name', 'learnpress' ),
68 + 'type' => 'text',
69 + 'desc_tip' => esc_html__( 'Display field name.', 'learnpress' ),
70 + 'placeholder' => esc_html__( 'Display name', 'learnpress' ),
71 + ),
72 + 'type' => array(
73 + 'title' => esc_html__( 'Type', 'learnpress' ),
74 + 'type' => 'select',
75 + 'options' => array(
76 + 'text' => esc_html__( 'Text', 'learnpress' ),
77 + 'textarea' => esc_html__( 'Textarea', 'learnpress' ),
78 + 'checkbox' => esc_html__( 'Checkbox', 'learnpress' ),
79 + 'url' => esc_html__( 'URL', 'learnpress' ),
80 + 'number' => esc_html__( 'Number', 'learnpress' ),
81 + ),
82 + ),
83 + 'required' => array(
84 + 'title' => esc_html__( 'Required?', 'learnpress' ),
85 + 'type' => 'checkbox',
86 + ),
87 + ),
88 + 'desc' => esc_html__( 'Custom fields to the registration form.', 'learnpress' ),
89 + ),
90 + array(
91 + 'type' => 'sectionend',
92 + 'id' => 'lp_profile_general',
93 + ),
94 + )
95 + )
96 +);