Version Description
- - 11/05/2018 =
- Refactor - user_password field for mod security reason
- Refactor - Meta keys and field keys
- Feature - Cutomizable reset password email
- Feature - Deafult user fields on profile tab in my account section
- Fix - Redirect via template_redirect hook removing js redirection
- Add - Filter hooks for every email classes
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.5.1 to 1.3.0
- includes/abstracts/abstract-ur-form-field.php +4 -2
- includes/admin/class-ur-admin-menus.php +1 -1
- includes/admin/class-ur-admin-profile.php +1 -5
- includes/admin/settings/class-ur-settings-email.php +2 -0
- includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php +1 -1
- includes/admin/settings/emails/class-ur-settings-email-confirmation.php +1 -1
- includes/admin/settings/emails/class-ur-settings-registration-approved-email.php +1 -1
- includes/admin/settings/emails/class-ur-settings-registration-denied-email.php +1 -1
- includes/admin/settings/emails/class-ur-settings-registration-pending-email.php +1 -1
- includes/admin/settings/emails/class-ur-settings-reset-password-email.php +98 -0
- includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php +1 -1
- includes/admin/views/html-admin-page-forms.php +1 -0
- includes/class-ur-ajax.php +1 -1
- includes/class-ur-email-confirmation.php +7 -3
- includes/class-ur-emailer.php +35 -18
- includes/class-ur-form-handler.php +1 -1
- includes/class-ur-install.php +5 -1
- includes/form/{class-ur-user-description.php → class-ur-description.php} +6 -4
- includes/form/{class-ur-user-display-name.php → class-ur-display-name.php} +6 -4
- includes/form/{class-ur-user-first-name.php → class-ur-first-name.php} +9 -6
- includes/form/{class-ur-user-last-name.php → class-ur-last-name.php} +7 -5
- includes/form/{class-ur-user-nickname.php → class-ur-nickname.php} +7 -5
- includes/form/{class-ur-user-username.php → class-ur-user-login.php} +5 -5
- includes/form/{class-ur-user-password.php → class-ur-user-pass.php} +5 -5
- includes/form/views/admin/{admin-user-description.php → admin-description.php} +4 -4
- includes/form/views/admin/{admin-user-display-name.php → admin-display-name.php} +4 -4
- includes/form/views/admin/{admin-user-first-name.php → admin-first-name.php} +5 -5
- includes/form/views/admin/{admin-user-last-name.php → admin-last-name.php} +4 -4
- includes/form/views/admin/{admin-user-nickname.php → admin-nickname.php} +4 -4
- includes/form/views/admin/{admin-user-username.php → admin-user-login.php} +4 -4
- includes/form/views/admin/{admin-user-password.php → admin-user-pass.php} +5 -5
- includes/frontend/class-ur-frontend-form-handler.php +13 -14
- includes/functions-ur-account.php +22 -0
- includes/functions-ur-core.php +102 -66
- includes/functions-ur-template.php +4 -2
- includes/functions-ur-update.php +96 -0
- includes/shortcodes/class-ur-shortcode-login.php +0 -5
- includes/shortcodes/class-ur-shortcode-my-account.php +3 -4
- languages/user-registration.pot +152 -138
- package-lock.json +7 -7
- readme.txt +14 -38
- templates/myaccount/lost-password-confirmation.php +1 -1
- user-registration.php +2 -2
includes/abstracts/abstract-ur-form-field.php
CHANGED
@@ -228,13 +228,15 @@ abstract class UR_Form_Field {
|
|
228 |
|
229 |
$sub_string_key = substr( $this->id, strlen( 'user_registration_' ), 5 );
|
230 |
|
|
|
|
|
231 |
switch ( $setting_value['type'] ) {
|
232 |
|
233 |
case 'text':
|
234 |
|
235 |
-
$extra_attribute =
|
236 |
|
237 |
-
$value =
|
238 |
|
239 |
$general_setting_wrapper .= '<input value="' . $value . '" data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="text" name="' . $setting_value['name'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
240 |
|
228 |
|
229 |
$sub_string_key = substr( $this->id, strlen( 'user_registration_' ), 5 );
|
230 |
|
231 |
+
$strip_prefix = substr( $this->id, 18 );
|
232 |
+
|
233 |
switch ( $setting_value['type'] ) {
|
234 |
|
235 |
case 'text':
|
236 |
|
237 |
+
$extra_attribute = in_array( $strip_prefix, ur_get_fields_without_prefix() ) && 'field_name' == $setting_key ? "disabled='disabled'" : '';
|
238 |
|
239 |
+
$value = in_array( $strip_prefix, ur_get_fields_without_prefix() ) && 'field_name' == $setting_key ? trim( str_replace( 'user_registration_', '', $this->id ) ) : $this->get_general_setting_data( $setting_key );
|
240 |
|
241 |
$general_setting_wrapper .= '<input value="' . $value . '" data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="text" name="' . $setting_value['name'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
242 |
|
includes/admin/class-ur-admin-menus.php
CHANGED
@@ -616,7 +616,7 @@ if ( ! class_exists( 'UR_Admin_Menus', false ) ) :
|
|
616 |
echo ' </ul > ';
|
617 |
}
|
618 |
|
619 |
-
|
620 |
|
621 |
$class_name = ur_load_form_field_class( $field );
|
622 |
|
616 |
echo ' </ul > ';
|
617 |
}
|
618 |
|
619 |
+
public function ur_get_list( $field ) {
|
620 |
|
621 |
$class_name = ur_load_form_field_class( $field );
|
622 |
|
includes/admin/class-ur-admin-profile.php
CHANGED
@@ -372,18 +372,14 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
372 |
$fields[ $field_index ] = array(
|
373 |
'label' => __( $field_label, 'user-registration' ),
|
374 |
'description' => '',
|
375 |
-
|
376 |
-
|
377 |
);
|
378 |
|
379 |
-
} elseif ( ! in_array( $field_name,
|
380 |
|
381 |
$field_index = $field_name;
|
382 |
$fields[ $field_name ] = array(
|
383 |
'label' => __( $field_label, 'user-registration' ),
|
384 |
'description' => '',
|
385 |
-
|
386 |
-
|
387 |
);
|
388 |
}
|
389 |
switch ( $field_key ) {
|
372 |
$fields[ $field_index ] = array(
|
373 |
'label' => __( $field_label, 'user-registration' ),
|
374 |
'description' => '',
|
|
|
|
|
375 |
);
|
376 |
|
377 |
+
} elseif ( ! in_array( $field_name, ur_get_fields_without_prefix() ) ) {
|
378 |
|
379 |
$field_index = $field_name;
|
380 |
$fields[ $field_name ] = array(
|
381 |
'label' => __( $field_label, 'user-registration' ),
|
382 |
'description' => '',
|
|
|
|
|
383 |
);
|
384 |
}
|
385 |
switch ( $field_key ) {
|
includes/admin/settings/class-ur-settings-email.php
CHANGED
@@ -55,6 +55,8 @@ if ( ! class_exists( 'UR_Settings_Email' ) ) :
|
|
55 |
|
56 |
$this->emails['UR_Settings_Successfully_Registered_Email'] = include( 'emails/class-ur-settings-successfully-registered-email.php' );
|
57 |
|
|
|
|
|
58 |
$this->emails = apply_filters( 'user_registration_email_classes', $this->emails );
|
59 |
}
|
60 |
|
55 |
|
56 |
$this->emails['UR_Settings_Successfully_Registered_Email'] = include( 'emails/class-ur-settings-successfully-registered-email.php' );
|
57 |
|
58 |
+
$this->emails['UR_Settings_Reset_Password_Email'] = include( 'emails/class-ur-settings-reset-password-email.php' );
|
59 |
+
|
60 |
$this->emails = apply_filters( 'user_registration_email_classes', $this->emails );
|
61 |
}
|
62 |
|
includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php
CHANGED
@@ -87,7 +87,7 @@ class UR_Settings_Awaiting_Admin_Approval_Email{
|
|
87 |
|
88 |
public function ur_get_awaiting_admin_approval_email() {
|
89 |
|
90 |
-
$message = apply_filters( '
|
91 |
|
92 |
'Hi {{username}},
|
93 |
<br/>
|
87 |
|
88 |
public function ur_get_awaiting_admin_approval_email() {
|
89 |
|
90 |
+
$message = apply_filters( 'user_registration_get_awaiting_admin_approval_email', __( sprintf(
|
91 |
|
92 |
'Hi {{username}},
|
93 |
<br/>
|
includes/admin/settings/emails/class-ur-settings-email-confirmation.php
CHANGED
@@ -76,7 +76,7 @@ class UR_Settings_Email_Confirmation{
|
|
76 |
|
77 |
public function ur_get_email_confirmation() {
|
78 |
|
79 |
-
$message = apply_filters( '
|
80 |
|
81 |
'Hi {{username}},
|
82 |
<br/>
|
76 |
|
77 |
public function ur_get_email_confirmation() {
|
78 |
|
79 |
+
$message = apply_filters( 'user_registration_get_email_confirmation', __( sprintf(
|
80 |
|
81 |
'Hi {{username}},
|
82 |
<br/>
|
includes/admin/settings/emails/class-ur-settings-registration-approved-email.php
CHANGED
@@ -88,7 +88,7 @@ class UR_Settings_Registration_Approved_Email{
|
|
88 |
|
89 |
public function ur_get_registration_approved_email() {
|
90 |
|
91 |
-
$message = apply_filters( '
|
92 |
|
93 |
'Hi {{username}},
|
94 |
<br/>
|
88 |
|
89 |
public function ur_get_registration_approved_email() {
|
90 |
|
91 |
+
$message = apply_filters( 'user_registration_get_registration_approved_email', __( sprintf(
|
92 |
|
93 |
'Hi {{username}},
|
94 |
<br/>
|
includes/admin/settings/emails/class-ur-settings-registration-denied-email.php
CHANGED
@@ -88,7 +88,7 @@ class UR_Settings_Registration_Denied_Email{
|
|
88 |
|
89 |
public function ur_get_registration_denied_email() {
|
90 |
|
91 |
-
$message = apply_filters( '
|
92 |
|
93 |
'Hi {{username}},
|
94 |
<br/>
|
88 |
|
89 |
public function ur_get_registration_denied_email() {
|
90 |
|
91 |
+
$message = apply_filters( 'user_registration_get_registration_denied_email', __( sprintf(
|
92 |
|
93 |
'Hi {{username}},
|
94 |
<br/>
|
includes/admin/settings/emails/class-ur-settings-registration-pending-email.php
CHANGED
@@ -86,7 +86,7 @@ class UR_Settings_Registration_Pending_Email{
|
|
86 |
|
87 |
public function ur_get_registration_pending_email() {
|
88 |
|
89 |
-
$message = apply_filters( '
|
90 |
|
91 |
'Hi {{username}},
|
92 |
<br/>
|
86 |
|
87 |
public function ur_get_registration_pending_email() {
|
88 |
|
89 |
+
$message = apply_filters( 'user_registration_get_registration_pending_email', __( sprintf(
|
90 |
|
91 |
'Hi {{username}},
|
92 |
<br/>
|
includes/admin/settings/emails/class-ur-settings-reset-password-email.php
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Configure Email
|
4 |
+
*
|
5 |
+
* @class UR_Settings_Reset_Password_Email
|
6 |
+
* @category Class
|
7 |
+
* @author WPEverest
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
exit;
|
12 |
+
}
|
13 |
+
|
14 |
+
if ( ! class_exists( 'UR_Settings_Reset_Password_Email', false ) ) :
|
15 |
+
|
16 |
+
/**
|
17 |
+
* UR_Settings_Reset_Password_Email Class.
|
18 |
+
*/
|
19 |
+
class UR_Settings_Reset_Password_Email{
|
20 |
+
|
21 |
+
public function __construct() {
|
22 |
+
$this->id = 'reset_password_email';
|
23 |
+
$this->title = __( 'Reset Password Email', 'user-registration' );
|
24 |
+
$this->description = __( 'Email sent to the user when a user requests for reset password', 'user-registration' );
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Get settings
|
29 |
+
*
|
30 |
+
* @return array
|
31 |
+
*/
|
32 |
+
public function get_settings() {
|
33 |
+
|
34 |
+
?><h2><?php echo esc_html__('Reset Password Email','user-registration'); ?> <?php ur_back_link( __( 'Return to emails', 'user-registration' ), admin_url( 'admin.php?page=user-registration-settings&tab=email' ) ); ?></h2>
|
35 |
+
|
36 |
+
<?php
|
37 |
+
$settings = apply_filters(
|
38 |
+
'user_registration_reset_password_email', array(
|
39 |
+
|
40 |
+
array(
|
41 |
+
'type' => 'title',
|
42 |
+
'desc' => '',
|
43 |
+
'id' => 'reset_password_email',
|
44 |
+
),
|
45 |
+
array(
|
46 |
+
'title' => __( 'Enable this email', 'user-registration' ),
|
47 |
+
'desc' => __( 'Enable this email sent to the user when a user requests for reset password.', 'user-registration' ),
|
48 |
+
'id' => 'user_registration_enable_reset_password_email',
|
49 |
+
'default' => 'yes',
|
50 |
+
'type' => 'checkbox',
|
51 |
+
'autoload' => false,
|
52 |
+
),
|
53 |
+
array(
|
54 |
+
'title' => __( 'Email Subject', 'user-registration' ),
|
55 |
+
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
56 |
+
'id' => 'user_registration_reset_password_email_subject',
|
57 |
+
'type' => 'text',
|
58 |
+
'default' => __('Password Reset Email: {{blog_info}}', 'user-registration'),
|
59 |
+
'css' => 'min-width: 350px;',
|
60 |
+
'desc_tip' => true,
|
61 |
+
),
|
62 |
+
|
63 |
+
array(
|
64 |
+
'title' => __( 'Email Content', 'user-registration' ),
|
65 |
+
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
66 |
+
'id' => 'user_registration_reset_password_email',
|
67 |
+
'type' => 'tinymce',
|
68 |
+
'default' => $this->ur_get_reset_password_email(),
|
69 |
+
'css' => 'min-width: 350px;',
|
70 |
+
'desc_tip' => true,
|
71 |
+
),
|
72 |
+
|
73 |
+
array(
|
74 |
+
'type' => 'sectionend',
|
75 |
+
'id' => 'reset_password_email',
|
76 |
+
),
|
77 |
+
)
|
78 |
+
);
|
79 |
+
|
80 |
+
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
81 |
+
}
|
82 |
+
|
83 |
+
public function ur_get_reset_password_email() {
|
84 |
+
|
85 |
+
$message = apply_filters( 'user_registration_reset_password_email_message', __( sprintf(
|
86 |
+
'Someone has requested a password reset for the following account:
|
87 |
+
<br/><br/> SiteName: {{blog_info}} <br/><br/> Username: {{username}}<br/><br/>
|
88 |
+
If this was a mistake, just ignore this email and nothing will happen. <br/><br/>
|
89 |
+
To reset your password, visit the following address:<br/>
|
90 |
+
{{home_url}}/wp-login.php?action=rp&key={{key}}&login={{username}}<br/></br>
|
91 |
+
Thank You!'), 'user-registration' ) );
|
92 |
+
|
93 |
+
return $message;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
endif;
|
97 |
+
|
98 |
+
return new UR_Settings_Reset_Password_Email();
|
includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php
CHANGED
@@ -86,7 +86,7 @@ class UR_Settings_Successfully_Registered_Email{
|
|
86 |
|
87 |
public function ur_get_successfully_registered_email() {
|
88 |
|
89 |
-
$message = apply_filters( '
|
90 |
|
91 |
'Hi {{username}},
|
92 |
<br/>
|
86 |
|
87 |
public function ur_get_successfully_registered_email() {
|
88 |
|
89 |
+
$message = apply_filters( 'user_registration_get_successfully_registered_email', __( sprintf(
|
90 |
|
91 |
'Hi {{username}},
|
92 |
<br/>
|
includes/admin/views/html-admin-page-forms.php
CHANGED
@@ -63,6 +63,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
63 |
<?php $this->get_registered_user_form_fields(); ?>
|
64 |
<h2><?php echo __( 'Extra Fields', 'user-registration' ) ?></h2>
|
65 |
<?php $this->get_registered_other_form_fields(); ?>
|
|
|
66 |
</div>
|
67 |
<div id="ur-tab-field-options" class="ur-tab-content">
|
68 |
|
63 |
<?php $this->get_registered_user_form_fields(); ?>
|
64 |
<h2><?php echo __( 'Extra Fields', 'user-registration' ) ?></h2>
|
65 |
<?php $this->get_registered_other_form_fields(); ?>
|
66 |
+
<?php do_action( 'user_registration_extra_fields' );?>
|
67 |
</div>
|
68 |
<div id="ur-tab-field-options" class="ur-tab-content">
|
69 |
|
includes/class-ur-ajax.php
CHANGED
@@ -211,7 +211,7 @@ class UR_AJAX {
|
|
211 |
|
212 |
'user_email',
|
213 |
|
214 |
-
'
|
215 |
|
216 |
);
|
217 |
|
211 |
|
212 |
'user_email',
|
213 |
|
214 |
+
'user_pass',
|
215 |
|
216 |
);
|
217 |
|
includes/class-ur-email-confirmation.php
CHANGED
@@ -59,6 +59,8 @@ class UR_Email_Confirmation {
|
|
59 |
|
60 |
public function check_token_before_authenticate()
|
61 |
{
|
|
|
|
|
62 |
add_action( 'login_enqueue_scripts', array( $this, 'ur_enqueue_script' ), 1 );
|
63 |
|
64 |
if( isset( $_GET['ur_resend_id'] ) && $_GET['ur_resend_token'] == 'true') {
|
@@ -99,6 +101,8 @@ class UR_Email_Confirmation {
|
|
99 |
|
100 |
if( $user_token == $_GET['ur_token'] )
|
101 |
{
|
|
|
|
|
102 |
update_user_meta( $user_id, 'ur_confirm_email', 1 );
|
103 |
delete_user_meta( $user_id, 'ur_confirm_email_token');
|
104 |
|
@@ -113,7 +117,7 @@ class UR_Email_Confirmation {
|
|
113 |
}
|
114 |
}
|
115 |
|
116 |
-
do_action('user_registration_check_token_complete');
|
117 |
|
118 |
}
|
119 |
|
@@ -197,7 +201,7 @@ class UR_Email_Confirmation {
|
|
197 |
|
198 |
if ( $email_status === '0' ) {
|
199 |
|
200 |
-
$error_message = __( 'Email not verified!', 'user-registration' );
|
201 |
$result = new WP_Error( 'user_email_not_verified', $error_message );
|
202 |
}
|
203 |
|
@@ -205,4 +209,4 @@ class UR_Email_Confirmation {
|
|
205 |
}
|
206 |
}
|
207 |
|
208 |
-
new UR_Email_Confirmation();
|
59 |
|
60 |
public function check_token_before_authenticate()
|
61 |
{
|
62 |
+
$user_reg_successful = false;
|
63 |
+
|
64 |
add_action( 'login_enqueue_scripts', array( $this, 'ur_enqueue_script' ), 1 );
|
65 |
|
66 |
if( isset( $_GET['ur_resend_id'] ) && $_GET['ur_resend_token'] == 'true') {
|
101 |
|
102 |
if( $user_token == $_GET['ur_token'] )
|
103 |
{
|
104 |
+
$user_reg_successful = true;
|
105 |
+
|
106 |
update_user_meta( $user_id, 'ur_confirm_email', 1 );
|
107 |
delete_user_meta( $user_id, 'ur_confirm_email_token');
|
108 |
|
117 |
}
|
118 |
}
|
119 |
|
120 |
+
do_action('user_registration_check_token_complete', $user_id, $user_reg_successful );
|
121 |
|
122 |
}
|
123 |
|
201 |
|
202 |
if ( $email_status === '0' ) {
|
203 |
|
204 |
+
$error_message = __( 'Email not verified! Verifiy your email by clicking on the link sent to your email.', 'user-registration' );
|
205 |
$result = new WP_Error( 'user_email_not_verified', $error_message );
|
206 |
}
|
207 |
|
209 |
}
|
210 |
}
|
211 |
|
212 |
+
new UR_Email_Confirmation();
|
includes/class-ur-emailer.php
CHANGED
@@ -65,7 +65,7 @@ class UR_Emailer {
|
|
65 |
public static function ur_after_register_mail( $valid_form_data, $form_id, $user_id ) {
|
66 |
|
67 |
$data_html = '';
|
68 |
-
$valid_form_data = isset( $valid_form_data ) ? $valid_form_data :
|
69 |
|
70 |
foreach( $valid_form_data as $field_meta => $form_data ) {
|
71 |
if( $field_meta === 'user_confirm_password' ) {
|
@@ -79,7 +79,7 @@ class UR_Emailer {
|
|
79 |
$label = isset( $form_data->extra_params['label'] ) ? $form_data->extra_params['label'] : '';
|
80 |
$value = isset( $form_data->value ) ? $form_data->value : '';
|
81 |
|
82 |
-
if( $field_meta === '
|
83 |
$value = __('Chosen Password', 'user-registration');
|
84 |
}
|
85 |
|
@@ -93,11 +93,11 @@ class UR_Emailer {
|
|
93 |
|
94 |
$email_object = isset( $valid_form_data['user_email'] ) ? $valid_form_data['user_email'] : array();
|
95 |
|
96 |
-
$
|
97 |
|
98 |
$email = isset( $email_object->value ) && ! empty( $email_object->value ) ? $email_object->value : '';
|
99 |
|
100 |
-
$username = isset( $
|
101 |
|
102 |
if ( ! empty( $email ) && ! empty( $user_id ) ) {
|
103 |
|
@@ -307,24 +307,41 @@ class UR_Emailer {
|
|
307 |
* @param $user_data
|
308 |
* @param $key
|
309 |
*/
|
310 |
-
public static function lost_password_email($user_login
|
311 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
$headers = array('Content-Type: text/html; charset=UTF-8');
|
313 |
-
|
314 |
-
$subject =
|
315 |
-
|
316 |
-
$message
|
317 |
-
|
318 |
-
$message
|
319 |
-
|
320 |
-
$
|
321 |
-
|
322 |
-
$
|
323 |
-
|
324 |
-
|
325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
return true;
|
327 |
}
|
|
|
328 |
return false;
|
329 |
}
|
330 |
|
65 |
public static function ur_after_register_mail( $valid_form_data, $form_id, $user_id ) {
|
66 |
|
67 |
$data_html = '';
|
68 |
+
$valid_form_data = isset( $valid_form_data ) ? $valid_form_data : array();
|
69 |
|
70 |
foreach( $valid_form_data as $field_meta => $form_data ) {
|
71 |
if( $field_meta === 'user_confirm_password' ) {
|
79 |
$label = isset( $form_data->extra_params['label'] ) ? $form_data->extra_params['label'] : '';
|
80 |
$value = isset( $form_data->value ) ? $form_data->value : '';
|
81 |
|
82 |
+
if( $field_meta === 'user_pass') {
|
83 |
$value = __('Chosen Password', 'user-registration');
|
84 |
}
|
85 |
|
93 |
|
94 |
$email_object = isset( $valid_form_data['user_email'] ) ? $valid_form_data['user_email'] : array();
|
95 |
|
96 |
+
$user_login_object = isset( $valid_form_data['user_login'] ) ? $valid_form_data['user_login'] : array();
|
97 |
|
98 |
$email = isset( $email_object->value ) && ! empty( $email_object->value ) ? $email_object->value : '';
|
99 |
|
100 |
+
$username = isset( $user_login_object->value ) && ! empty( $user_login_object->value ) ? $user_login_object->value : '';
|
101 |
|
102 |
if ( ! empty( $email ) && ! empty( $user_id ) ) {
|
103 |
|
307 |
* @param $user_data
|
308 |
* @param $key
|
309 |
*/
|
310 |
+
public static function lost_password_email( $user_login, $user_data, $key )
|
311 |
{
|
312 |
+
$user = get_user_by( 'login', $user_login );
|
313 |
+
|
314 |
+
$email = isset( $user->data->user_email ) ? $user->data->user_email : '';
|
315 |
+
|
316 |
+
$username = isset( $user->data->user_login ) ? $user->data->user_login : '';
|
317 |
+
|
318 |
+
if( empty( $email ) || empty( $username ) ) {
|
319 |
+
return false;
|
320 |
+
}
|
321 |
+
|
322 |
$headers = array('Content-Type: text/html; charset=UTF-8');
|
323 |
+
|
324 |
+
$subject = get_option( 'user_registration_reset_password_email_subject', __('Password Reset Email: {{blog_info}}', 'user-registration') );
|
325 |
+
|
326 |
+
$message = new UR_Settings_Reset_Password_Email();
|
327 |
+
|
328 |
+
$message = $message->ur_get_reset_password_email();
|
329 |
+
|
330 |
+
$message = get_option( 'user_registration_reset_password_email', $message );
|
331 |
+
|
332 |
+
$to_replace = array( "{{username}}", "{{key}}", "{{blog_info}}", "{{home_url}}" );
|
333 |
+
|
334 |
+
$replace_with = array( $username, $key, get_bloginfo(), get_home_url() );
|
335 |
+
|
336 |
+
$message = str_replace( $to_replace, $replace_with, $message );
|
337 |
+
|
338 |
+
$subject = str_replace( $to_replace, $replace_with, $subject );
|
339 |
+
|
340 |
+
if ( 'yes' == get_option( 'user_registration_enable_reset_password_email', 'yes' ) ) {
|
341 |
+
wp_mail( $email, $subject, $message, $headers );
|
342 |
return true;
|
343 |
}
|
344 |
+
|
345 |
return false;
|
346 |
}
|
347 |
|
includes/class-ur-form-handler.php
CHANGED
@@ -130,7 +130,7 @@ class UR_Form_Handler {
|
|
130 |
|
131 |
if ( in_array( $new_key, ur_get_user_table_fields() ) ) {
|
132 |
|
133 |
-
if ( $new_key === '
|
134 |
|
135 |
$user_data['display_name'] = $_POST[ $key ];
|
136 |
} else {
|
130 |
|
131 |
if ( in_array( $new_key, ur_get_user_table_fields() ) ) {
|
132 |
|
133 |
+
if ( $new_key === 'display_name' ) {
|
134 |
|
135 |
$user_data['display_name'] = $_POST[ $key ];
|
136 |
} else {
|
includes/class-ur-install.php
CHANGED
@@ -26,6 +26,10 @@ class UR_Install {
|
|
26 |
'ur_update_120_usermeta',
|
27 |
'ur_update_120_db_version',
|
28 |
),
|
|
|
|
|
|
|
|
|
29 |
);
|
30 |
|
31 |
/**
|
@@ -319,7 +323,7 @@ class UR_Install {
|
|
319 |
$hasposts = get_posts( 'post_type=user_registration' );
|
320 |
|
321 |
if ( 0 === count( $hasposts ) ) {
|
322 |
-
$post_content = '[[[{"field_key":"
|
323 |
|
324 |
// Insert default form :)
|
325 |
$default_post_id = wp_insert_post( array(
|
26 |
'ur_update_120_usermeta',
|
27 |
'ur_update_120_db_version',
|
28 |
),
|
29 |
+
'1.3.0' => array(
|
30 |
+
'ur_update_130_db_version',
|
31 |
+
'ur_update_130_post',
|
32 |
+
)
|
33 |
);
|
34 |
|
35 |
/**
|
323 |
$hasposts = get_posts( 'post_type=user_registration' );
|
324 |
|
325 |
if ( 0 === count( $hasposts ) ) {
|
326 |
+
$post_content = '[[[{"field_key":"user_login","general_setting":{"label":"Username","field_name":"user_login","placeholder":"","required":"yes"},"advance_setting":{}},{"field_key":"user_pass","general_setting":{"label":"User Password","field_name":"user_pass","placeholder":"","required":"yes"},"advance_setting":{}}],[{"field_key":"user_email","general_setting":{"label":"User Email","field_name":"user_email","placeholder":"","required":"yes"},"advance_setting":{}},{"field_key":"user_confirm_password","general_setting":{"label":"Confirm Password","field_name":"user_confirm_password","placeholder":"","required":"yes"},"advance_setting":{}}]]]';
|
327 |
|
328 |
// Insert default form :)
|
329 |
$default_post_id = wp_insert_post( array(
|
includes/form/{class-ur-user-description.php → class-ur-description.php}
RENAMED
@@ -14,9 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
*
|
18 |
*/
|
19 |
-
class
|
20 |
|
21 |
private static $_instance;
|
22 |
|
@@ -35,7 +35,7 @@ class UR_User_Description extends UR_Form_Field {
|
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
-
$this->id = '
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
@@ -49,6 +49,8 @@ class UR_User_Description extends UR_Form_Field {
|
|
49 |
$this->field_defaults = array(
|
50 |
|
51 |
'default_label' => __( 'User Bio','user-registration' ),
|
|
|
|
|
52 |
);
|
53 |
}
|
54 |
|
@@ -70,4 +72,4 @@ class UR_User_Description extends UR_Form_Field {
|
|
70 |
|
71 |
}
|
72 |
|
73 |
-
return
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* UR_Description Class
|
18 |
*/
|
19 |
+
class UR_Description extends UR_Form_Field {
|
20 |
|
21 |
private static $_instance;
|
22 |
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
+
$this->id = 'user_registration_description';
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
49 |
$this->field_defaults = array(
|
50 |
|
51 |
'default_label' => __( 'User Bio','user-registration' ),
|
52 |
+
|
53 |
+
'default_field_name' => 'description',
|
54 |
);
|
55 |
}
|
56 |
|
72 |
|
73 |
}
|
74 |
|
75 |
+
return UR_Description::get_instance();
|
includes/form/{class-ur-user-display-name.php → class-ur-display-name.php}
RENAMED
@@ -14,9 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
*
|
18 |
*/
|
19 |
-
class
|
20 |
|
21 |
private static $_instance;
|
22 |
|
@@ -35,7 +35,7 @@ class UR_User_Display_Name extends UR_Form_Field {
|
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
-
$this->id = '
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
@@ -48,6 +48,8 @@ class UR_User_Display_Name extends UR_Form_Field {
|
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'Display Name','user-registration' ),
|
|
|
|
|
51 |
);
|
52 |
}
|
53 |
|
@@ -69,4 +71,4 @@ class UR_User_Display_Name extends UR_Form_Field {
|
|
69 |
|
70 |
}
|
71 |
|
72 |
-
return
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* UR_Display_Name Class
|
18 |
*/
|
19 |
+
class UR_Display_Name extends UR_Form_Field {
|
20 |
|
21 |
private static $_instance;
|
22 |
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
+
$this->id = 'user_registration_display_name';
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'Display Name','user-registration' ),
|
51 |
+
|
52 |
+
'default_field_name' => 'display_name',
|
53 |
);
|
54 |
}
|
55 |
|
71 |
|
72 |
}
|
73 |
|
74 |
+
return UR_Display_Name::get_instance();
|
includes/form/{class-ur-user-first-name.php → class-ur-first-name.php}
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
-
* @class
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
@@ -14,9 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
*
|
18 |
*/
|
19 |
-
class
|
20 |
|
21 |
private static $_instance;
|
22 |
|
@@ -35,19 +35,22 @@ class UR_User_First_Name extends UR_Form_Field {
|
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
-
$this->id = '
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
42 |
$this->registered_fields_config = array(
|
43 |
|
44 |
-
'label' => __( 'First Name
|
45 |
|
46 |
'icon' => 'dashicons dashicons-id',
|
47 |
);
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'First Name','user-registration' ),
|
|
|
|
|
|
|
51 |
);
|
52 |
}
|
53 |
|
@@ -67,4 +70,4 @@ class UR_User_First_Name extends UR_Form_Field {
|
|
67 |
}
|
68 |
}
|
69 |
|
70 |
-
return
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
+
* @class UR_First_Name
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* UR_First_Name Class
|
18 |
*/
|
19 |
+
class UR_First_Name extends UR_Form_Field {
|
20 |
|
21 |
private static $_instance;
|
22 |
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
+
$this->id = 'user_registration_first_name';
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
42 |
$this->registered_fields_config = array(
|
43 |
|
44 |
+
'label' => __( 'First Name', 'user-registration' ),
|
45 |
|
46 |
'icon' => 'dashicons dashicons-id',
|
47 |
);
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'First Name','user-registration' ),
|
51 |
+
|
52 |
+
'default_field_name' => 'first_name',
|
53 |
+
|
54 |
);
|
55 |
}
|
56 |
|
70 |
}
|
71 |
}
|
72 |
|
73 |
+
return UR_First_Name::get_instance();
|
includes/form/{class-ur-user-last-name.php → class-ur-last-name.php}
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
-
* @class
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
@@ -14,9 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
*
|
18 |
*/
|
19 |
-
class
|
20 |
|
21 |
private static $_instance;
|
22 |
|
@@ -35,7 +35,7 @@ class UR_User_Last_Name extends UR_Form_Field {
|
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
-
$this->id = '
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
@@ -48,6 +48,8 @@ class UR_User_Last_Name extends UR_Form_Field {
|
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'Last Name','user-registration' ),
|
|
|
|
|
51 |
);
|
52 |
}
|
53 |
|
@@ -67,4 +69,4 @@ class UR_User_Last_Name extends UR_Form_Field {
|
|
67 |
}
|
68 |
}
|
69 |
|
70 |
-
return
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
+
* @class UR_Last_Name
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* UR_Last_Name Class
|
18 |
*/
|
19 |
+
class UR_Last_Name extends UR_Form_Field {
|
20 |
|
21 |
private static $_instance;
|
22 |
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
+
$this->id = 'user_registration_last_name';
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'Last Name','user-registration' ),
|
51 |
+
|
52 |
+
'default_field_name' => 'last_name',
|
53 |
);
|
54 |
}
|
55 |
|
69 |
}
|
70 |
}
|
71 |
|
72 |
+
return UR_Last_Name::get_instance();
|
includes/form/{class-ur-user-nickname.php → class-ur-nickname.php}
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
-
* @class
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
@@ -14,9 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
*
|
18 |
*/
|
19 |
-
class
|
20 |
|
21 |
private static $_instance;
|
22 |
|
@@ -35,7 +35,7 @@ class UR_User_Nickname extends UR_Form_Field {
|
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
-
$this->id = '
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
@@ -48,6 +48,8 @@ class UR_User_Nickname extends UR_Form_Field {
|
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'Nickname','user-registration' ),
|
|
|
|
|
51 |
);
|
52 |
}
|
53 |
|
@@ -69,4 +71,4 @@ class UR_User_Nickname extends UR_Form_Field {
|
|
69 |
|
70 |
}
|
71 |
|
72 |
-
return
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
+
* @class UR_Nickname
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* UR_Nickname Class
|
18 |
*/
|
19 |
+
class UR_Nickname extends UR_Form_Field {
|
20 |
|
21 |
private static $_instance;
|
22 |
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
+
$this->id = 'user_registration_nickname';
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
48 |
$this->field_defaults = array(
|
49 |
|
50 |
'default_label' => __( 'Nickname','user-registration' ),
|
51 |
+
|
52 |
+
'default_field_name' => 'description',
|
53 |
);
|
54 |
}
|
55 |
|
71 |
|
72 |
}
|
73 |
|
74 |
+
return UR_Nickname::get_instance();
|
includes/form/{class-ur-user-username.php → class-ur-user-login.php}
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
-
* @class
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
@@ -14,9 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
*
|
18 |
*/
|
19 |
-
class
|
20 |
|
21 |
private static $_instance;
|
22 |
|
@@ -35,7 +35,7 @@ class UR_User_Username extends UR_Form_Field {
|
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
-
$this->id = '
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
@@ -96,4 +96,4 @@ class UR_User_Username extends UR_Form_Field {
|
|
96 |
|
97 |
}
|
98 |
|
99 |
-
return
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
+
* @class UR_User_Login
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* UR_User_Login Class
|
18 |
*/
|
19 |
+
class UR_User_Login extends UR_Form_Field {
|
20 |
|
21 |
private static $_instance;
|
22 |
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
+
$this->id = 'user_registration_user_login';
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
96 |
|
97 |
}
|
98 |
|
99 |
+
return UR_User_Login::get_instance();
|
includes/form/{class-ur-user-password.php → class-ur-user-pass.php}
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
-
* @class
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
@@ -14,9 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
*
|
18 |
*/
|
19 |
-
class
|
20 |
|
21 |
private static $_instance;
|
22 |
|
@@ -35,7 +35,7 @@ class UR_User_Password extends UR_Form_Field {
|
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
-
$this->id = '
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
@@ -108,4 +108,4 @@ class UR_User_Password extends UR_Form_Field {
|
|
108 |
}
|
109 |
}
|
110 |
|
111 |
-
return
|
2 |
/**
|
3 |
* UserRegistration Admin.
|
4 |
*
|
5 |
+
* @class UR_User_Pass
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Form
|
8 |
* @category Admin
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* UR_User_Pass Class
|
18 |
*/
|
19 |
+
class UR_User_Pass extends UR_Form_Field {
|
20 |
|
21 |
private static $_instance;
|
22 |
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
|
38 |
+
$this->id = 'user_registration_user_pass';
|
39 |
|
40 |
$this->form_id = 1;
|
41 |
|
108 |
}
|
109 |
}
|
110 |
|
111 |
+
return UR_User_Pass::get_instance();
|
includes/form/views/admin/{admin-user-description.php → admin-description.php}
RENAMED
@@ -7,21 +7,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
exit;
|
8 |
}
|
9 |
?>
|
10 |
-
<div class="ur-input-type-
|
11 |
|
12 |
<div class="ur-label">
|
13 |
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
-
<div class="ur-field" data-field-key="
|
18 |
|
19 |
-
<textarea id="ur-input-type-
|
20 |
|
21 |
</div>
|
22 |
<?php
|
23 |
|
24 |
-
|
25 |
|
26 |
?>
|
27 |
</div>
|
7 |
exit;
|
8 |
}
|
9 |
?>
|
10 |
+
<div class="ur-input-type-description ur-admin-template">
|
11 |
|
12 |
<div class="ur-label">
|
13 |
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
+
<div class="ur-field" data-field-key="description">
|
18 |
|
19 |
+
<textarea id="ur-input-type-description"></textarea>
|
20 |
|
21 |
</div>
|
22 |
<?php
|
23 |
|
24 |
+
UR_Description::get_instance()->get_setting();
|
25 |
|
26 |
?>
|
27 |
</div>
|
includes/form/views/admin/{admin-user-display-name.php → admin-display-name.php}
RENAMED
@@ -8,21 +8,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
-
<div class="ur-input-type-
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
-
<div class="ur-field" data-field-key="
|
18 |
|
19 |
-
<input type="text" id="ur-input-type-
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
-
|
26 |
|
27 |
?>
|
28 |
</div>
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
+
<div class="ur-input-type-display-name ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
+
<div class="ur-field" data-field-key="display_name">
|
18 |
|
19 |
+
<input type="text" id="ur-input-type-display-name"
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
+
UR_Display_Name::get_instance()->get_setting();
|
26 |
|
27 |
?>
|
28 |
</div>
|
includes/form/views/admin/{admin-user-first-name.php → admin-first-name.php}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Form View: Input Type
|
4 |
*/
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -8,21 +8,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
-
<div class="ur-input-type-
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
-
<div class="ur-field" data-field-key="
|
18 |
|
19 |
-
<input type="text" id="ur-input-type-
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
-
|
26 |
|
27 |
?>
|
28 |
</div>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Form View: Input Type First Name
|
4 |
*/
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
+
<div class="ur-input-type-first-name ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
+
<div class="ur-field" data-field-key="first_name">
|
18 |
|
19 |
+
<input type="text" id="ur-input-type-first-name"
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
+
UR_First_Name::get_instance()->get_setting();
|
26 |
|
27 |
?>
|
28 |
</div>
|
includes/form/views/admin/{admin-user-last-name.php → admin-last-name.php}
RENAMED
@@ -8,21 +8,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
-
<div class="ur-input-type-
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
-
<div class="ur-field" data-field-key="
|
18 |
|
19 |
-
<input type="text" id="ur-input-type-
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
-
|
26 |
|
27 |
?>
|
28 |
</div>
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
+
<div class="ur-input-type-last-name ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
+
<div class="ur-field" data-field-key="last_name">
|
18 |
|
19 |
+
<input type="text" id="ur-input-type-last-name"
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
+
UR_Last_Name::get_instance()->get_setting();
|
26 |
|
27 |
?>
|
28 |
</div>
|
includes/form/views/admin/{admin-user-nickname.php → admin-nickname.php}
RENAMED
@@ -8,21 +8,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
-
<div class="ur-input-type-
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
-
<div class="ur-field" data-field-key="
|
18 |
|
19 |
-
<input type="text" id="ur-input-type-
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
-
|
26 |
|
27 |
?>
|
28 |
</div>
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
+
<div class="ur-input-type-nickname ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
+
<div class="ur-field" data-field-key="nickname">
|
18 |
|
19 |
+
<input type="text" id="ur-input-type-nickname"
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
+
UR_Nickname::get_instance()->get_setting();
|
26 |
|
27 |
?>
|
28 |
</div>
|
includes/form/views/admin/{admin-user-username.php → admin-user-login.php}
RENAMED
@@ -8,21 +8,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
-
<div class="ur-input-type-user-
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
-
<div class="ur-field" data-field-key="
|
18 |
|
19 |
-
<input type="text" id="ur-input-type-user-
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
-
|
26 |
|
27 |
?>
|
28 |
</div>
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
+
<div class="ur-input-type-user-login ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?></label>
|
15 |
|
16 |
</div>
|
17 |
+
<div class="ur-field" data-field-key="user_login">
|
18 |
|
19 |
+
<input type="text" id="ur-input-type-user-login"
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
+
UR_User_Login::get_instance()->get_setting();
|
26 |
|
27 |
?>
|
28 |
</div>
|
includes/form/views/admin/{admin-user-password.php → admin-user-pass.php}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Form View: Input Type User
|
4 |
*/
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -8,21 +8,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
-
<div class="ur-input-type-user-
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?><span style="color:red">*</span></label>
|
15 |
|
16 |
</div>
|
17 |
-
<div class="ur-field" data-field-key="
|
18 |
|
19 |
-
<input type="password" id="ur-input-type-user-
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
-
|
26 |
|
27 |
?>
|
28 |
</div>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Form View: Input Type User Pass
|
4 |
*/
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
8 |
}
|
9 |
|
10 |
?>
|
11 |
+
<div class="ur-input-type-user-pass ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?><span style="color:red">*</span></label>
|
15 |
|
16 |
</div>
|
17 |
+
<div class="ur-field" data-field-key="user_pass">
|
18 |
|
19 |
+
<input type="password" id="ur-input-type-user-pass"
|
20 |
placeholder="<?php echo esc_attr($this->get_general_setting_data( 'placeholder' )); ?>"/>
|
21 |
|
22 |
</div>
|
23 |
<?php
|
24 |
|
25 |
+
UR_User_Pass::get_instance()->get_setting();
|
26 |
|
27 |
?>
|
28 |
</div>
|
includes/frontend/class-ur-frontend-form-handler.php
CHANGED
@@ -38,10 +38,10 @@ class UR_Frontend_Form_Handler {
|
|
38 |
if ( count( self::$response_array ) == 0 ) {
|
39 |
$user_role = ! in_array( ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' ), array_keys( ur_get_default_admin_roles() ) ) ? 'subscriber' : ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' );
|
40 |
$userdata = array(
|
41 |
-
'user_login' => isset( self::$valid_form_data['
|
42 |
-
'user_pass' => self::$valid_form_data['
|
43 |
'user_email' => self::$valid_form_data['user_email']->value,
|
44 |
-
'display_name' => isset( self::$valid_form_data['
|
45 |
'user_url' => isset( self::$valid_form_data['user_url']->value ) ? self::$valid_form_data['user_url']->value : '',
|
46 |
// When creating an user, `user_pass` is expected.
|
47 |
'role' => $user_role,
|
@@ -69,7 +69,7 @@ class UR_Frontend_Form_Handler {
|
|
69 |
if ( $user_id > 0 ) {
|
70 |
$login_option = get_option( 'user_registration_general_setting_login_options', 'default' );
|
71 |
$success_params = array(
|
72 |
-
'username' => isset( self::$valid_form_data['
|
73 |
);
|
74 |
if ( 'auto_login' === $login_option ) {
|
75 |
wp_clear_auth_cookie();
|
@@ -93,7 +93,7 @@ class UR_Frontend_Form_Handler {
|
|
93 |
foreach ( $post_content_array as $row_index => $row ) {
|
94 |
foreach ( $row as $grid_index => $grid ) {
|
95 |
foreach ( $grid as $field_index => $field ) {
|
96 |
-
if ( '
|
97 |
array_push( $form_field_data_array, $field );
|
98 |
}
|
99 |
}
|
@@ -173,10 +173,10 @@ class UR_Frontend_Form_Handler {
|
|
173 |
case 'user_email':
|
174 |
$form_data->value = sanitize_email( $form_data->value );
|
175 |
break;
|
176 |
-
case '
|
177 |
$form_data->value = sanitize_user( $form_data->value );
|
178 |
break;
|
179 |
-
case '
|
180 |
break;
|
181 |
default:
|
182 |
$form_data->value = sanitize_text_field( $form_data->value );
|
@@ -191,13 +191,12 @@ class UR_Frontend_Form_Handler {
|
|
191 |
$field_key = $data->field_name;
|
192 |
$field_key_for_param = $data->field_name;
|
193 |
|
194 |
-
$
|
195 |
-
if( in_array( $field_key, $default_meta ) ) {
|
196 |
-
$field_key = trim( str_replace( 'user_', '', $field_key ) );
|
197 |
-
} else {
|
198 |
-
$field_key = 'user_registration_' . $field_key;
|
199 |
-
}
|
200 |
|
|
|
|
|
|
|
|
|
201 |
if( isset( $data->extra_params['field_key'] ) && $data->extra_params['field_key'] === 'checkbox' ) {
|
202 |
$data->value = json_decode( $data->value );
|
203 |
}
|
@@ -216,7 +215,7 @@ class UR_Frontend_Form_Handler {
|
|
216 |
$has_confirm_password = true;
|
217 |
unset( $form_data[ $index ] );
|
218 |
}
|
219 |
-
if ( '
|
220 |
$password = $single_data->value;
|
221 |
}
|
222 |
}
|
38 |
if ( count( self::$response_array ) == 0 ) {
|
39 |
$user_role = ! in_array( ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' ), array_keys( ur_get_default_admin_roles() ) ) ? 'subscriber' : ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' );
|
40 |
$userdata = array(
|
41 |
+
'user_login' => isset( self::$valid_form_data['user_login'] ) ? self::$valid_form_data['user_login']->value : '',
|
42 |
+
'user_pass' => self::$valid_form_data['user_pass']->value,
|
43 |
'user_email' => self::$valid_form_data['user_email']->value,
|
44 |
+
'display_name' => isset( self::$valid_form_data['display_name']->value ) ? self::$valid_form_data['display_name']->value : '',
|
45 |
'user_url' => isset( self::$valid_form_data['user_url']->value ) ? self::$valid_form_data['user_url']->value : '',
|
46 |
// When creating an user, `user_pass` is expected.
|
47 |
'role' => $user_role,
|
69 |
if ( $user_id > 0 ) {
|
70 |
$login_option = get_option( 'user_registration_general_setting_login_options', 'default' );
|
71 |
$success_params = array(
|
72 |
+
'username' => isset( self::$valid_form_data['user_login'] ) ? self::$valid_form_data['user_login']->value : '',
|
73 |
);
|
74 |
if ( 'auto_login' === $login_option ) {
|
75 |
wp_clear_auth_cookie();
|
93 |
foreach ( $post_content_array as $row_index => $row ) {
|
94 |
foreach ( $row as $grid_index => $grid ) {
|
95 |
foreach ( $grid as $field_index => $field ) {
|
96 |
+
if ( 'confirm_user_pass' != $field->general_setting->field_name ) {
|
97 |
array_push( $form_field_data_array, $field );
|
98 |
}
|
99 |
}
|
173 |
case 'user_email':
|
174 |
$form_data->value = sanitize_email( $form_data->value );
|
175 |
break;
|
176 |
+
case 'user_login':
|
177 |
$form_data->value = sanitize_user( $form_data->value );
|
178 |
break;
|
179 |
+
case 'user_pass':
|
180 |
break;
|
181 |
default:
|
182 |
$form_data->value = sanitize_text_field( $form_data->value );
|
191 |
$field_key = $data->field_name;
|
192 |
$field_key_for_param = $data->field_name;
|
193 |
|
194 |
+
$fields_without_prefix = ur_get_fields_without_prefix();
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
+
if( ! in_array( $field_key, $fields_without_prefix ) ) {
|
197 |
+
$field_key = 'user_registration_' . $field_key;
|
198 |
+
}
|
199 |
+
|
200 |
if( isset( $data->extra_params['field_key'] ) && $data->extra_params['field_key'] === 'checkbox' ) {
|
201 |
$data->value = json_decode( $data->value );
|
202 |
}
|
215 |
$has_confirm_password = true;
|
216 |
unset( $form_data[ $index ] );
|
217 |
}
|
218 |
+
if ( 'user_pass' == $single_data->field_name ) {
|
219 |
$password = $single_data->value;
|
220 |
}
|
221 |
}
|
includes/functions-ur-account.php
CHANGED
@@ -14,6 +14,27 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
exit;
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
/**
|
18 |
* Returns the url to the lost password endpoint url.
|
19 |
*
|
@@ -22,6 +43,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
22 |
* @return string
|
23 |
*/
|
24 |
function ur_lostpassword_url( $default_url = '' ) {
|
|
|
25 |
// Don't redirect to the user registration endpoint on global network admin lost passwords.
|
26 |
if ( is_multisite() && isset( $_GET['redirect_to'] ) && false !== strpos( $_GET['redirect_to'], network_admin_url() ) ) {
|
27 |
return $default_url;
|
14 |
exit;
|
15 |
}
|
16 |
|
17 |
+
|
18 |
+
add_filter( 'login_errors', 'login_error_message' );
|
19 |
+
|
20 |
+
//Modify error message on invalid username or password
|
21 |
+
function login_error_message( $error ) {
|
22 |
+
|
23 |
+
// Don't change login error messages on admin site.
|
24 |
+
if ( isset( $_POST['redirect_to'] ) && false !== strpos( $_POST['redirect_to'], network_admin_url() ) ) {
|
25 |
+
return $error;
|
26 |
+
}
|
27 |
+
|
28 |
+
//check if that's the error you are looking for
|
29 |
+
$pos = strpos( $error, 'incorrect' );
|
30 |
+
|
31 |
+
if ( is_int( $pos ) ) {
|
32 |
+
//its the correct username with incorrect password
|
33 |
+
$error = __( "The password you entered for the " . $_POST['username'] ." is incorrect. <a href='". $_POST['redirect'] . get_option( 'user_registration_myaccount_lost_password_endpoint', 'lost-password' ) ."'>".__('Lost Your Password?','user-registration')."</a>", "user-registration" );
|
34 |
+
}
|
35 |
+
return $error;
|
36 |
+
}
|
37 |
+
|
38 |
/**
|
39 |
* Returns the url to the lost password endpoint url.
|
40 |
*
|
43 |
* @return string
|
44 |
*/
|
45 |
function ur_lostpassword_url( $default_url = '' ) {
|
46 |
+
|
47 |
// Don't redirect to the user registration endpoint on global network admin lost passwords.
|
48 |
if ( is_multisite() && isset( $_GET['redirect_to'] ) && false !== strpos( $_GET['redirect_to'], network_admin_url() ) ) {
|
49 |
return $default_url;
|
includes/functions-ur-core.php
CHANGED
@@ -302,33 +302,6 @@ function ur_enable_ur_plugin_headers( $headers ) {
|
|
302 |
|
303 |
add_filter( 'extra_plugin_headers', 'ur_enable_ur_plugin_headers' );
|
304 |
|
305 |
-
/**
|
306 |
-
* Get user table fields.
|
307 |
-
*
|
308 |
-
* @return array
|
309 |
-
*/
|
310 |
-
function ur_get_user_table_fields() {
|
311 |
-
return apply_filters( 'user_registration_user_table_fields', array(
|
312 |
-
'user_email',
|
313 |
-
'user_password',
|
314 |
-
'user_username',
|
315 |
-
'user_url',
|
316 |
-
'user_display_name',
|
317 |
-
) );
|
318 |
-
}
|
319 |
-
|
320 |
-
/**
|
321 |
-
* Get required fields.
|
322 |
-
*
|
323 |
-
* @return array
|
324 |
-
*/
|
325 |
-
function ur_get_required_fields() {
|
326 |
-
return apply_filters( 'user_registration_required_form_fields', array(
|
327 |
-
'user_email',
|
328 |
-
'user_password',
|
329 |
-
) );
|
330 |
-
}
|
331 |
-
|
332 |
function ur_get_field_type( $field_key ) {
|
333 |
|
334 |
$fields = ur_get_registered_form_fields();
|
@@ -345,21 +318,21 @@ function ur_get_field_type( $field_key ) {
|
|
345 |
break;
|
346 |
case 'user_confirm_password':
|
347 |
case 'password':
|
348 |
-
case '
|
349 |
$field_type = 'password';
|
350 |
break;
|
351 |
-
case '
|
352 |
-
case '
|
353 |
-
case '
|
354 |
-
case '
|
355 |
-
case '
|
356 |
case 'text':
|
357 |
$field_type = 'text';
|
358 |
break;
|
359 |
case 'user_url':
|
360 |
$field_type = 'url';
|
361 |
break;
|
362 |
-
case '
|
363 |
case 'textarea':
|
364 |
$field_type = 'textarea';
|
365 |
break;
|
@@ -388,86 +361,149 @@ function ur_get_field_type( $field_key ) {
|
|
388 |
}
|
389 |
}
|
390 |
|
391 |
-
return $field_type;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
}
|
393 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
function ur_get_one_time_draggable_fields() {
|
395 |
-
$form_fields = ur_get_user_field_only();
|
396 |
|
|
|
397 |
return apply_filters( 'user_registration_one_time_draggable_form_fields', $form_fields );
|
398 |
}
|
399 |
|
|
|
|
|
|
|
|
|
|
|
400 |
function ur_get_account_details_fields() {
|
401 |
|
402 |
return apply_filters( 'user_registration_registered_account_fields', array(
|
403 |
'user_email',
|
404 |
-
'
|
405 |
'user_confirm_password',
|
406 |
-
'
|
407 |
-
'
|
408 |
-
'
|
409 |
-
|
410 |
) );
|
411 |
-
|
412 |
-
|
413 |
}
|
414 |
|
|
|
|
|
|
|
|
|
|
|
415 |
function ur_get_user_profile_field_only() {
|
416 |
|
417 |
$user_fields = array_diff( ur_get_registered_form_fields(), ur_get_account_details_fields() );
|
418 |
-
|
419 |
-
return $user_fields;
|
420 |
}
|
421 |
|
422 |
-
|
423 |
-
|
|
|
|
|
|
|
|
|
|
|
424 |
|
425 |
-
|
426 |
-
if ( substr( $field, 0, 5 ) == 'user_' ) {
|
427 |
-
array_push( $user_fields, $field );
|
428 |
-
}
|
429 |
-
}
|
430 |
|
431 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
}
|
433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
function ur_get_other_form_fields() {
|
435 |
$registered = ur_get_registered_form_fields();
|
436 |
$user_fields = ur_get_user_field_only();
|
437 |
$result = array_diff( $registered, $user_fields );
|
438 |
|
439 |
-
return $result;
|
440 |
}
|
441 |
|
442 |
|
443 |
/**
|
|
|
444 |
* @return mixed|array
|
445 |
*/
|
446 |
function ur_get_registered_user_meta_fields() {
|
447 |
return apply_filters( 'user_registration_registered_user_meta_fields', array(
|
448 |
-
'
|
449 |
-
'
|
450 |
-
'
|
451 |
-
'
|
452 |
-
|
453 |
) );
|
454 |
}
|
455 |
|
456 |
/**
|
|
|
457 |
* @return mixed|array
|
458 |
*/
|
459 |
function ur_get_registered_form_fields() {
|
460 |
return apply_filters( 'user_registration_registered_form_fields', array(
|
461 |
'user_email',
|
462 |
-
'
|
463 |
'user_confirm_password',
|
464 |
-
'
|
465 |
-
'
|
466 |
-
'
|
467 |
-
'
|
468 |
'user_url',
|
469 |
-
'
|
470 |
-
'
|
471 |
'text',
|
472 |
'password',
|
473 |
'email',
|
302 |
|
303 |
add_filter( 'extra_plugin_headers', 'ur_enable_ur_plugin_headers' );
|
304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
function ur_get_field_type( $field_key ) {
|
306 |
|
307 |
$fields = ur_get_registered_form_fields();
|
318 |
break;
|
319 |
case 'user_confirm_password':
|
320 |
case 'password':
|
321 |
+
case 'user_pass':
|
322 |
$field_type = 'password';
|
323 |
break;
|
324 |
+
case 'user_login':
|
325 |
+
case 'nickname':
|
326 |
+
case 'first_name':
|
327 |
+
case 'flast_name':
|
328 |
+
case 'display_name':
|
329 |
case 'text':
|
330 |
$field_type = 'text';
|
331 |
break;
|
332 |
case 'user_url':
|
333 |
$field_type = 'url';
|
334 |
break;
|
335 |
+
case 'description':
|
336 |
case 'textarea':
|
337 |
$field_type = 'textarea';
|
338 |
break;
|
361 |
}
|
362 |
}
|
363 |
|
364 |
+
return apply_filters( 'user_registration_field_keys', $field_type, $field_key );
|
365 |
+
}
|
366 |
+
|
367 |
+
/**
|
368 |
+
* Get user table fields.
|
369 |
+
*
|
370 |
+
* @return array
|
371 |
+
*/
|
372 |
+
function ur_get_user_table_fields() {
|
373 |
+
return apply_filters( 'user_registration_user_table_fields', array(
|
374 |
+
'user_email',
|
375 |
+
'user_pass',
|
376 |
+
'user_login',
|
377 |
+
'user_url',
|
378 |
+
'display_name',
|
379 |
+
) );
|
380 |
}
|
381 |
|
382 |
+
/**
|
383 |
+
* Get required fields.
|
384 |
+
*
|
385 |
+
* @return array
|
386 |
+
*/
|
387 |
+
function ur_get_required_fields() {
|
388 |
+
return apply_filters( 'user_registration_required_form_fields', array(
|
389 |
+
'user_email',
|
390 |
+
'user_pass',
|
391 |
+
) );
|
392 |
+
}
|
393 |
+
|
394 |
+
/**
|
395 |
+
* Get one time draggable fields fields.
|
396 |
+
*
|
397 |
+
* @return array
|
398 |
+
*/
|
399 |
function ur_get_one_time_draggable_fields() {
|
|
|
400 |
|
401 |
+
$form_fields = ur_get_user_field_only();
|
402 |
return apply_filters( 'user_registration_one_time_draggable_form_fields', $form_fields );
|
403 |
}
|
404 |
|
405 |
+
/**
|
406 |
+
* Get all fiels appearing in my account tab.
|
407 |
+
*
|
408 |
+
* @return array
|
409 |
+
*/
|
410 |
function ur_get_account_details_fields() {
|
411 |
|
412 |
return apply_filters( 'user_registration_registered_account_fields', array(
|
413 |
'user_email',
|
414 |
+
'user_pass',
|
415 |
'user_confirm_password',
|
416 |
+
'user_login',
|
417 |
+
'first_name',
|
418 |
+
'last_name',
|
|
|
419 |
) );
|
|
|
|
|
420 |
}
|
421 |
|
422 |
+
/**
|
423 |
+
* Get all fields appearing in profile tab.
|
424 |
+
*
|
425 |
+
* @return array
|
426 |
+
*/
|
427 |
function ur_get_user_profile_field_only() {
|
428 |
|
429 |
$user_fields = array_diff( ur_get_registered_form_fields(), ur_get_account_details_fields() );
|
430 |
+
return apply_filters( 'user_registration_user_profile_field_only', $user_fields );
|
|
|
431 |
}
|
432 |
|
433 |
+
/*
|
434 |
+
* All fields to update without adding prefix
|
435 |
+
* @returns array
|
436 |
+
*/
|
437 |
+
function ur_get_fields_without_prefix() {
|
438 |
+
$fields = ur_get_user_field_only();
|
439 |
+
return apply_filters( 'user_registration_fields_without_prefix', $fields );
|
440 |
|
441 |
+
}
|
|
|
|
|
|
|
|
|
442 |
|
443 |
+
/**
|
444 |
+
* Get all default fields by wordpress.
|
445 |
+
*
|
446 |
+
* @return array
|
447 |
+
*/
|
448 |
+
function ur_get_user_field_only() {
|
449 |
+
return apply_filters( 'user_registration_user_form_fields', array(
|
450 |
+
'user_email',
|
451 |
+
'user_pass',
|
452 |
+
'user_confirm_password',
|
453 |
+
'user_login',
|
454 |
+
'nickname',
|
455 |
+
'first_name',
|
456 |
+
'last_name',
|
457 |
+
'user_url',
|
458 |
+
'display_name',
|
459 |
+
'description',
|
460 |
+
) );
|
461 |
}
|
462 |
|
463 |
+
|
464 |
+
/**
|
465 |
+
* Get all extra form fields
|
466 |
+
*
|
467 |
+
* @return array
|
468 |
+
*/
|
469 |
function ur_get_other_form_fields() {
|
470 |
$registered = ur_get_registered_form_fields();
|
471 |
$user_fields = ur_get_user_field_only();
|
472 |
$result = array_diff( $registered, $user_fields );
|
473 |
|
474 |
+
return apply_filters( 'user_registration_other_form_fields', $result );
|
475 |
}
|
476 |
|
477 |
|
478 |
/**
|
479 |
+
* All default fields storing in usermeta table
|
480 |
* @return mixed|array
|
481 |
*/
|
482 |
function ur_get_registered_user_meta_fields() {
|
483 |
return apply_filters( 'user_registration_registered_user_meta_fields', array(
|
484 |
+
'nickname',
|
485 |
+
'first_name',
|
486 |
+
'last_name',
|
487 |
+
'description'
|
|
|
488 |
) );
|
489 |
}
|
490 |
|
491 |
/**
|
492 |
+
* All registered form fields
|
493 |
* @return mixed|array
|
494 |
*/
|
495 |
function ur_get_registered_form_fields() {
|
496 |
return apply_filters( 'user_registration_registered_form_fields', array(
|
497 |
'user_email',
|
498 |
+
'user_pass',
|
499 |
'user_confirm_password',
|
500 |
+
'user_login',
|
501 |
+
'nickname',
|
502 |
+
'first_name',
|
503 |
+
'last_name',
|
504 |
'user_url',
|
505 |
+
'display_name',
|
506 |
+
'description',
|
507 |
'text',
|
508 |
'password',
|
509 |
'email',
|
includes/functions-ur-template.php
CHANGED
@@ -33,6 +33,7 @@ function ur_template_redirect() {
|
|
33 |
}
|
34 |
|
35 |
add_action( 'template_redirect', 'ur_template_redirect' );
|
|
|
36 |
|
37 |
/**
|
38 |
* Handle redirects before content is output - hooked into template_redirect so is_page works.
|
@@ -97,7 +98,6 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
97 |
* @return string
|
98 |
*/
|
99 |
function user_registration_form_field( $key, $args, $value = null ) {
|
100 |
-
|
101 |
$defaults = array(
|
102 |
'type' => 'text',
|
103 |
'label' => '',
|
@@ -396,6 +396,8 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
396 |
}
|
397 |
|
398 |
$extra_params['default'] = isset( $all_meta_value[ 'user_registration_' . $field_name ][0] ) ? $all_meta_value[ 'user_registration_' . $field_name ][0] : '';
|
|
|
|
|
399 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
400 |
$fields[ 'user_registration_' . $field_name ] = array(
|
401 |
'label' => __( $field_label, 'user-registration' ),
|
@@ -404,7 +406,7 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
404 |
'field_key' => $field_key,
|
405 |
'required' => $required,
|
406 |
);
|
407 |
-
} elseif (
|
408 |
$fields[ 'user_registration_' . $field_name ] = array(
|
409 |
'label' => __( $field_label, 'user-registration' ),
|
410 |
'description' => '',
|
33 |
}
|
34 |
|
35 |
add_action( 'template_redirect', 'ur_template_redirect' );
|
36 |
+
add_action( 'template_redirect', 'ur_login_template_redirect' );
|
37 |
|
38 |
/**
|
39 |
* Handle redirects before content is output - hooked into template_redirect so is_page works.
|
98 |
* @return string
|
99 |
*/
|
100 |
function user_registration_form_field( $key, $args, $value = null ) {
|
|
|
101 |
$defaults = array(
|
102 |
'type' => 'text',
|
103 |
'label' => '',
|
396 |
}
|
397 |
|
398 |
$extra_params['default'] = isset( $all_meta_value[ 'user_registration_' . $field_name ][0] ) ? $all_meta_value[ 'user_registration_' . $field_name ][0] : '';
|
399 |
+
|
400 |
+
|
401 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
402 |
$fields[ 'user_registration_' . $field_name ] = array(
|
403 |
'label' => __( $field_label, 'user-registration' ),
|
406 |
'field_key' => $field_key,
|
407 |
'required' => $required,
|
408 |
);
|
409 |
+
} elseif ( in_array( $field_name, ur_get_user_profile_field_only() ) ) {
|
410 |
$fields[ 'user_registration_' . $field_name ] = array(
|
411 |
'label' => __( $field_label, 'user-registration' ),
|
412 |
'description' => '',
|
includes/functions-ur-update.php
CHANGED
@@ -91,3 +91,99 @@ function ur_update_125_usermeta() {
|
|
91 |
function ur_update_125_db_version() {
|
92 |
UR_Install::update_db_version( '1.2.5' );
|
93 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
function ur_update_125_db_version() {
|
92 |
UR_Install::update_db_version( '1.2.5' );
|
93 |
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Update DB Version.
|
97 |
+
*/
|
98 |
+
function ur_update_130_db_version() {
|
99 |
+
UR_Install::update_db_version( '1.3.0' );
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Update usermeta.
|
104 |
+
*/
|
105 |
+
function ur_update_130_post() {
|
106 |
+
$posts = get_posts( 'post_type=user_registration' );
|
107 |
+
foreach( $posts as $post ) {
|
108 |
+
$post_content = isset( $post->post_content ) ? $post->post_content : '';
|
109 |
+
$post_content_array = json_decode( $post_content );
|
110 |
+
|
111 |
+
foreach ( $post_content_array as $post_content_row ) {
|
112 |
+
foreach ( $post_content_row as $post_content_grid ) {
|
113 |
+
foreach ( $post_content_grid as $field ) {
|
114 |
+
|
115 |
+
if( isset( $field->field_key ) && isset( $field->general_setting->field_name ) ) {
|
116 |
+
switch( $field->field_key ) {
|
117 |
+
case 'user_username':
|
118 |
+
$field->general_setting->field_name = $field->field_key = 'user_login';
|
119 |
+
break;
|
120 |
+
case 'user_password':
|
121 |
+
$field->general_setting->field_name = $field->field_key = 'user_pass';
|
122 |
+
break;
|
123 |
+
case 'user_display_name':
|
124 |
+
$field->general_setting->field_name = $field->field_key = 'display_name';
|
125 |
+
break;
|
126 |
+
case 'user_description':
|
127 |
+
$field->general_setting->field_name = $field->field_key = 'description';
|
128 |
+
break;
|
129 |
+
case 'user_first_name':
|
130 |
+
$field->general_setting->field_name = $field->field_key = 'first_name';
|
131 |
+
break;
|
132 |
+
case 'user_last_name':
|
133 |
+
$field->general_setting->field_name = $field->field_key = 'last_name';
|
134 |
+
break;
|
135 |
+
case 'user_nickname':
|
136 |
+
$field->general_setting->field_name = $field->field_key = 'nickname';
|
137 |
+
break;
|
138 |
+
}
|
139 |
+
}
|
140 |
+
}
|
141 |
+
}
|
142 |
+
$post_content = json_encode( $post_content_array );
|
143 |
+
$post->post_content = $post_content;
|
144 |
+
}
|
145 |
+
wp_update_post( $post );
|
146 |
+
}
|
147 |
+
|
148 |
+
$mailchimp_settings = get_option( 'urmc_mailchimp_settings' );
|
149 |
+
|
150 |
+
if( $mailchimp_settings && is_array( $mailchimp_settings ) ) {
|
151 |
+
|
152 |
+
if( isset( $mailchimp_settings['data'] ) && is_array( $mailchimp_settings['data'] ) ) {
|
153 |
+
|
154 |
+
foreach( $mailchimp_settings['data'] as $id => $mailchimp_data ) {
|
155 |
+
|
156 |
+
if( isset( $mailchimp_data['fields'] ) ) {
|
157 |
+
|
158 |
+
foreach( $mailchimp_data['fields'] as $key => $field ) {
|
159 |
+
|
160 |
+
switch( $field ) {
|
161 |
+
case 'user_username':
|
162 |
+
$mailchimp_data['fields'][ $key ] = 'user_login';
|
163 |
+
break;
|
164 |
+
$mailchimp_data['fields'][ $key ] = 'user_pass';
|
165 |
+
break;
|
166 |
+
case 'user_display_name':
|
167 |
+
$mailchimp_data['fields'][ $key ] = 'display_name';
|
168 |
+
break;
|
169 |
+
case 'user_description':
|
170 |
+
$mailchimp_data['fields'][ $key ] = 'description';
|
171 |
+
break;
|
172 |
+
case 'user_first_name':
|
173 |
+
$mailchimp_data['fields'][ $key ] = 'first_name';
|
174 |
+
break;
|
175 |
+
case 'user_last_name':
|
176 |
+
$mailchimp_data['fields'][ $key ] = 'last_name';
|
177 |
+
break;
|
178 |
+
case 'user_nickname':
|
179 |
+
$mailchimp_data['fields'][ $key ] = 'nickname';
|
180 |
+
break;
|
181 |
+
}
|
182 |
+
}
|
183 |
+
}
|
184 |
+
$mailchimp_settings['data'][ $id ] = $mailchimp_data ;
|
185 |
+
}
|
186 |
+
}
|
187 |
+
update_option( 'urmc_mailchimp_settings', $mailchimp_settings );
|
188 |
+
}
|
189 |
+
}
|
includes/shortcodes/class-ur-shortcode-login.php
CHANGED
@@ -51,11 +51,6 @@ class UR_Shortcode_Login {
|
|
51 |
ur_get_template( 'myaccount/form-login.php' );
|
52 |
}
|
53 |
|
54 |
-
}else if(is_user_logged_in() && !empty(trim($redirect_url)) ){
|
55 |
-
?> <script>
|
56 |
-
window.location = "<?php echo trim($redirect_url);?>";
|
57 |
-
</script>
|
58 |
-
<?php
|
59 |
}
|
60 |
else
|
61 |
{
|
51 |
ur_get_template( 'myaccount/form-login.php' );
|
52 |
}
|
53 |
|
|
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
else
|
56 |
{
|
includes/shortcodes/class-ur-shortcode-my-account.php
CHANGED
@@ -138,7 +138,7 @@ class UR_Shortcode_My_Account {
|
|
138 |
|
139 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->$new_key, $key );
|
140 |
|
141 |
-
}else if(isset($user_data->display_name) && $key==='
|
142 |
|
143 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->display_name, $key );
|
144 |
|
@@ -267,9 +267,8 @@ class UR_Shortcode_My_Account {
|
|
267 |
$key = get_password_reset_key( $user_data );
|
268 |
|
269 |
// Send email notification
|
270 |
-
if(UR_Emailer::lost_password_email($user_login
|
271 |
-
|
272 |
-
ur_add_notice( __( 'The email could not be sent. Possible reason: your host may have disabled the mail() function. ', 'user-registration' ), 'error' );
|
273 |
return false;
|
274 |
}
|
275 |
|
138 |
|
139 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->$new_key, $key );
|
140 |
|
141 |
+
}else if(isset($user_data->display_name) && $key==='user_registration_display_name'){
|
142 |
|
143 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->display_name, $key );
|
144 |
|
267 |
$key = get_password_reset_key( $user_data );
|
268 |
|
269 |
// Send email notification
|
270 |
+
if( UR_Emailer::lost_password_email( $user_login, $user_data, $key) == false ) {
|
271 |
+
ur_add_notice( __( 'The email could not be sent. Contact your site administrator. ', 'user-registration' ), 'error' );
|
|
|
272 |
return false;
|
273 |
}
|
274 |
|
languages/user-registration.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the User Registration package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: User Registration 1.
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
-
"POT-Creation-Date: 2018-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -13,16 +13,16 @@ msgstr ""
|
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.1\n"
|
15 |
|
16 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
17 |
-
#: includes/functions-ur-core.php:
|
18 |
msgid "Description"
|
19 |
msgstr ""
|
20 |
|
21 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
22 |
msgid "General Settings"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
26 |
msgid "Advance Settings"
|
27 |
msgstr ""
|
28 |
|
@@ -95,7 +95,7 @@ msgid "User Registration settings"
|
|
95 |
msgstr ""
|
96 |
|
97 |
#: includes/admin/class-ur-admin-menus.php:303
|
98 |
-
#: includes/class-ur-install.php:
|
99 |
msgid "Settings"
|
100 |
msgstr ""
|
101 |
|
@@ -367,50 +367,50 @@ msgstr ""
|
|
367 |
msgid "Emails"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
371 |
msgid "General Email Settings"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
375 |
msgid "Email notifications"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
379 |
msgid ""
|
380 |
"Email notifications sent from user registration are listed below. Click on "
|
381 |
"an email to configure it."
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
385 |
msgid "Email Sender Options"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
389 |
msgid "\"From\" name"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
393 |
msgid "How the sender name appears in outgoing user registration emails."
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
397 |
msgid "\"From\" address"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
401 |
msgid "How the sender email appears in outgoing user registration emails."
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
405 |
msgid "Email"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
409 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
410 |
msgid "Configure"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
414 |
msgid "Smart Tags Used"
|
415 |
msgstr ""
|
416 |
|
@@ -429,7 +429,7 @@ msgid "Frontend Messages"
|
|
429 |
msgstr ""
|
430 |
|
431 |
#: includes/admin/settings/class-ur-settings-general.php:77
|
432 |
-
#: includes/functions-ur-core.php:
|
433 |
msgid "Default user role"
|
434 |
msgstr ""
|
435 |
|
@@ -493,7 +493,7 @@ msgid "Page contents: [%s]"
|
|
493 |
msgstr ""
|
494 |
|
495 |
#: includes/admin/settings/class-ur-settings-general.php:154
|
496 |
-
#: includes/functions-ur-core.php:
|
497 |
msgid "Enable strong password"
|
498 |
msgstr ""
|
499 |
|
@@ -502,7 +502,7 @@ msgid "Check to use strong password on user registration form."
|
|
502 |
msgstr ""
|
503 |
|
504 |
#: includes/admin/settings/class-ur-settings-general.php:163
|
505 |
-
#: includes/functions-ur-core.php:
|
506 |
msgid "Form submit button label"
|
507 |
msgstr ""
|
508 |
|
@@ -552,7 +552,7 @@ msgid ""
|
|
552 |
msgstr ""
|
553 |
|
554 |
#: includes/admin/settings/class-ur-settings-general.php:247
|
555 |
-
#: includes/functions-ur-core.php:
|
556 |
msgid "Manual login after registration"
|
557 |
msgstr ""
|
558 |
|
@@ -567,7 +567,7 @@ msgid "User successfully registered."
|
|
567 |
msgstr ""
|
568 |
|
569 |
#: includes/admin/settings/class-ur-settings-general.php:257
|
570 |
-
#: includes/functions-ur-core.php:
|
571 |
msgid "Email confirmation to login"
|
572 |
msgstr ""
|
573 |
|
@@ -580,11 +580,11 @@ msgstr ""
|
|
580 |
#: includes/admin/settings/class-ur-settings-general.php:263
|
581 |
msgid ""
|
582 |
"User registered. Verify your email by clicking on the link sent to your "
|
583 |
-
"email
|
584 |
msgstr ""
|
585 |
|
586 |
#: includes/admin/settings/class-ur-settings-general.php:267
|
587 |
-
#: includes/functions-ur-core.php:
|
588 |
msgid "Admin approval after registration"
|
589 |
msgstr ""
|
590 |
|
@@ -637,6 +637,7 @@ msgstr ""
|
|
637 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:36
|
638 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:36
|
639 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:35
|
|
|
640 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:36
|
641 |
msgid "Return to emails"
|
642 |
msgstr ""
|
@@ -646,6 +647,7 @@ msgstr ""
|
|
646 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:49
|
647 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:49
|
648 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:48
|
|
|
649 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:49
|
650 |
msgid "Enable this email"
|
651 |
msgstr ""
|
@@ -660,6 +662,7 @@ msgstr ""
|
|
660 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:58
|
661 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:58
|
662 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:57
|
|
|
663 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:58
|
664 |
msgid "Email Subject"
|
665 |
msgstr ""
|
@@ -670,6 +673,7 @@ msgstr ""
|
|
670 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:59
|
671 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:59
|
672 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:58
|
|
|
673 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:59
|
674 |
msgid "The email subject you want to customize."
|
675 |
msgstr ""
|
@@ -685,6 +689,7 @@ msgstr ""
|
|
685 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:69
|
686 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:69
|
687 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:67
|
|
|
688 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:67
|
689 |
msgid "Email Content"
|
690 |
msgstr ""
|
@@ -695,6 +700,7 @@ msgstr ""
|
|
695 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:70
|
696 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:70
|
697 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:68
|
|
|
698 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:68
|
699 |
msgid "The email content you want to customize."
|
700 |
msgstr ""
|
@@ -786,6 +792,24 @@ msgstr ""
|
|
786 |
msgid "Sorry! Registration changed to pending on {{blog_info}}"
|
787 |
msgstr ""
|
788 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
789 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:25
|
790 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:36
|
791 |
msgid "Successfully Registered Email"
|
@@ -983,7 +1007,7 @@ msgid "Log out of this account."
|
|
983 |
msgstr ""
|
984 |
|
985 |
#: includes/class-ur-ajax.php:114 includes/class-ur-shortcodes.php:121
|
986 |
-
#: includes/functions-ur-account.php:
|
987 |
msgid "Logout"
|
988 |
msgstr ""
|
989 |
|
@@ -1003,38 +1027,30 @@ msgstr ""
|
|
1003 |
msgid "Token Mismatch!"
|
1004 |
msgstr ""
|
1005 |
|
1006 |
-
#: includes/class-ur-email-confirmation.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1007 |
#: includes/class-ur-user-approval.php:183
|
1008 |
#: includes/class-ur-user-approval.php:188
|
1009 |
msgid "ERROR:"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
-
#: includes/class-ur-email-confirmation.php:
|
1013 |
msgid ""
|
1014 |
-
"
|
1015 |
-
"
|
1016 |
-
msgstr ""
|
1017 |
-
|
1018 |
-
#: includes/class-ur-email-confirmation.php:166
|
1019 |
-
msgid "Email not verified!"
|
1020 |
msgstr ""
|
1021 |
|
1022 |
#: includes/class-ur-emailer.php:83
|
1023 |
msgid "Chosen Password"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
-
#: includes/class-ur-emailer.php:315
|
1027 |
-
msgid "Someone has requested a password reset for the following account:"
|
1028 |
-
msgstr ""
|
1029 |
-
|
1030 |
-
#: includes/class-ur-emailer.php:318
|
1031 |
-
msgid "If this was a mistake, just ignore this email and nothing will happen."
|
1032 |
-
msgstr ""
|
1033 |
-
|
1034 |
-
#: includes/class-ur-emailer.php:319
|
1035 |
-
msgid "To reset your password, visit the following address:"
|
1036 |
-
msgstr ""
|
1037 |
-
|
1038 |
#: includes/class-ur-form-handler.php:99 includes/class-ur-form-handler.php:216
|
1039 |
msgid "%s is a required field."
|
1040 |
msgstr ""
|
@@ -1116,62 +1132,62 @@ msgstr ""
|
|
1116 |
msgid "Passwords do not match."
|
1117 |
msgstr ""
|
1118 |
|
1119 |
-
#: includes/class-ur-frontend-scripts.php:
|
1120 |
msgid "Captcha code error, please try again."
|
1121 |
msgstr ""
|
1122 |
|
1123 |
-
#: includes/class-ur-frontend-scripts.php:
|
1124 |
msgid "Confirm password"
|
1125 |
msgstr ""
|
1126 |
|
1127 |
-
#: includes/class-ur-frontend-scripts.php:
|
1128 |
msgid "Too short password"
|
1129 |
msgstr ""
|
1130 |
|
1131 |
-
#: includes/class-ur-frontend-scripts.php:
|
1132 |
msgid "Bad password"
|
1133 |
msgstr ""
|
1134 |
|
1135 |
-
#: includes/class-ur-frontend-scripts.php:
|
1136 |
msgid "Good password"
|
1137 |
msgstr ""
|
1138 |
|
1139 |
-
#: includes/class-ur-frontend-scripts.php:
|
1140 |
msgid "Strong password"
|
1141 |
msgstr ""
|
1142 |
|
1143 |
-
#: includes/class-ur-frontend-scripts.php:
|
1144 |
msgid "Password with confirm password not matched."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
-
#: includes/class-ur-frontend-scripts.php:
|
1148 |
msgid ""
|
1149 |
"Hint: The password should be a at least seven characters long. To make it "
|
1150 |
"stronger, user upper and lower case letters, numbers and symbol like ! * ? "
|
1151 |
"$ % ^ & )."
|
1152 |
msgstr ""
|
1153 |
|
1154 |
-
#: includes/class-ur-install.php:
|
1155 |
msgid "Default form"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
-
#: includes/class-ur-install.php:
|
1159 |
msgid "View User Registration settings"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
-
#: includes/class-ur-install.php:
|
1163 |
msgid "View User Registration documentation"
|
1164 |
msgstr ""
|
1165 |
|
1166 |
-
#: includes/class-ur-install.php:
|
1167 |
msgid "Docs"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
-
#: includes/class-ur-install.php:
|
1171 |
msgid "Visit free customer support"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
-
#: includes/class-ur-install.php:
|
1175 |
msgid "Free support"
|
1176 |
msgstr ""
|
1177 |
|
@@ -1292,11 +1308,11 @@ msgstr ""
|
|
1292 |
msgid "Parent registration"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: includes/class-ur-query.php:73 includes/functions-ur-account.php:
|
1296 |
msgid "Account details"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: includes/class-ur-query.php:76 includes/functions-ur-account.php:
|
1300 |
msgid "Profile Details"
|
1301 |
msgstr ""
|
1302 |
|
@@ -2314,6 +2330,16 @@ msgstr ""
|
|
2314 |
msgid "Country"
|
2315 |
msgstr ""
|
2316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2317 |
#: includes/form/class-ur-email.php:44
|
2318 |
msgid "Secondary Email "
|
2319 |
msgstr ""
|
@@ -2322,6 +2348,24 @@ msgstr ""
|
|
2322 |
msgid "Secondary Email"
|
2323 |
msgstr ""
|
2324 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2325 |
#: includes/form/class-ur-number.php:44 includes/form/class-ur-number.php:51
|
2326 |
msgid "Number"
|
2327 |
msgstr ""
|
@@ -2357,16 +2401,6 @@ msgstr ""
|
|
2357 |
msgid "Confirm Password"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
-
#: includes/form/class-ur-user-description.php:44
|
2361 |
-
#: includes/form/class-ur-user-description.php:51
|
2362 |
-
msgid "User Bio"
|
2363 |
-
msgstr ""
|
2364 |
-
|
2365 |
-
#: includes/form/class-ur-user-display-name.php:44
|
2366 |
-
#: includes/form/class-ur-user-display-name.php:50
|
2367 |
-
msgid "Display Name"
|
2368 |
-
msgstr ""
|
2369 |
-
|
2370 |
#: includes/form/class-ur-user-email.php:44
|
2371 |
msgid "Email "
|
2372 |
msgstr ""
|
@@ -2383,36 +2417,28 @@ msgstr ""
|
|
2383 |
msgid "Email already exists."
|
2384 |
msgstr ""
|
2385 |
|
2386 |
-
#: includes/form/class-ur-user-
|
2387 |
-
|
2388 |
-
|
2389 |
-
|
2390 |
-
#: includes/form/class-ur-user-first-name.php:50
|
2391 |
-
msgid "First Name"
|
2392 |
-
msgstr ""
|
2393 |
-
|
2394 |
-
#: includes/form/class-ur-user-last-name.php:44
|
2395 |
-
msgid "Last Name "
|
2396 |
msgstr ""
|
2397 |
|
2398 |
-
#: includes/form/class-ur-user-
|
2399 |
-
msgid "
|
2400 |
msgstr ""
|
2401 |
|
2402 |
-
#: includes/form/class-ur-user-
|
2403 |
-
|
2404 |
-
msgid "Nickname"
|
2405 |
msgstr ""
|
2406 |
|
2407 |
-
#: includes/form/class-ur-user-
|
2408 |
msgid "Password "
|
2409 |
msgstr ""
|
2410 |
|
2411 |
-
#: includes/form/class-ur-user-
|
2412 |
msgid "User Password"
|
2413 |
msgstr ""
|
2414 |
|
2415 |
-
#: includes/form/class-ur-user-
|
2416 |
msgid "Empty password."
|
2417 |
msgstr ""
|
2418 |
|
@@ -2421,19 +2447,6 @@ msgstr ""
|
|
2421 |
msgid "Website"
|
2422 |
msgstr ""
|
2423 |
|
2424 |
-
#: includes/form/class-ur-user-username.php:44
|
2425 |
-
#: includes/form/class-ur-user-username.php:51
|
2426 |
-
msgid "Username"
|
2427 |
-
msgstr ""
|
2428 |
-
|
2429 |
-
#: includes/form/class-ur-user-username.php:73
|
2430 |
-
msgid "Username already exists."
|
2431 |
-
msgstr ""
|
2432 |
-
|
2433 |
-
#: includes/form/class-ur-user-username.php:89
|
2434 |
-
msgid "Invalid username"
|
2435 |
-
msgstr ""
|
2436 |
-
|
2437 |
#: includes/form/settings/class-ur-setting-checkbox.php:41
|
2438 |
#: includes/form/settings/class-ur-setting-checkbox.php:55
|
2439 |
#: includes/form/settings/class-ur-setting-country.php:41
|
@@ -2513,92 +2526,92 @@ msgstr ""
|
|
2513 |
msgid "Required form field not found."
|
2514 |
msgstr ""
|
2515 |
|
2516 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
2517 |
msgid "Empty confirm password"
|
2518 |
msgstr ""
|
2519 |
|
2520 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
2521 |
msgid "Password and confirm password not matched"
|
2522 |
msgstr ""
|
2523 |
|
2524 |
-
#: includes/functions-ur-account.php:
|
2525 |
msgid "Dashboard"
|
2526 |
msgstr ""
|
2527 |
|
2528 |
-
#: includes/functions-ur-core.php:
|
2529 |
-
#: includes/functions-ur-core.php:
|
2530 |
msgid "Label"
|
2531 |
msgstr ""
|
2532 |
|
2533 |
-
#: includes/functions-ur-core.php:
|
2534 |
msgid "Field Name"
|
2535 |
msgstr ""
|
2536 |
|
2537 |
-
#: includes/functions-ur-core.php:
|
2538 |
msgid "Placeholder"
|
2539 |
msgstr ""
|
2540 |
|
2541 |
-
#: includes/functions-ur-core.php:
|
2542 |
msgid "Required"
|
2543 |
msgstr ""
|
2544 |
|
2545 |
-
#: includes/functions-ur-core.php:
|
2546 |
-
#: includes/functions-ur-core.php:
|
2547 |
msgid "No"
|
2548 |
msgstr ""
|
2549 |
|
2550 |
-
#: includes/functions-ur-core.php:
|
2551 |
-
#: includes/functions-ur-core.php:
|
2552 |
msgid "Yes"
|
2553 |
msgstr ""
|
2554 |
|
2555 |
-
#: includes/functions-ur-core.php:
|
2556 |
msgid "Hide Label"
|
2557 |
msgstr ""
|
2558 |
|
2559 |
-
#: includes/functions-ur-core.php:
|
2560 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
2561 |
msgstr ""
|
2562 |
|
2563 |
-
#: includes/functions-ur-core.php:
|
2564 |
msgid "Template"
|
2565 |
msgstr ""
|
2566 |
|
2567 |
-
#: includes/functions-ur-core.php:
|
2568 |
msgid "Default"
|
2569 |
msgstr ""
|
2570 |
|
2571 |
-
#: includes/functions-ur-core.php:
|
2572 |
msgid "Bordered"
|
2573 |
msgstr ""
|
2574 |
|
2575 |
-
#: includes/functions-ur-core.php:
|
2576 |
msgid "Flat"
|
2577 |
msgstr ""
|
2578 |
|
2579 |
-
#: includes/functions-ur-core.php:
|
2580 |
msgid "Rounded"
|
2581 |
msgstr ""
|
2582 |
|
2583 |
-
#: includes/functions-ur-core.php:
|
2584 |
msgid "Rounded Edge"
|
2585 |
msgstr ""
|
2586 |
|
2587 |
-
#: includes/functions-ur-core.php:
|
2588 |
msgid "Auto login after registration"
|
2589 |
msgstr ""
|
2590 |
|
2591 |
-
#: includes/functions-ur-core.php:
|
2592 |
msgid ""
|
2593 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
2594 |
"filter must implement <code>UR_Logger_Interface</code>."
|
2595 |
msgstr ""
|
2596 |
|
2597 |
-
#: includes/functions-ur-core.php:
|
2598 |
msgid "Disable emails"
|
2599 |
msgstr ""
|
2600 |
|
2601 |
-
#: includes/functions-ur-core.php:
|
2602 |
msgid "Disable all emails sent after registration."
|
2603 |
msgstr ""
|
2604 |
|
@@ -2625,7 +2638,7 @@ msgstr ""
|
|
2625 |
msgid "This method should not be called before plugins_loaded."
|
2626 |
msgstr ""
|
2627 |
|
2628 |
-
#: includes/shortcodes/class-ur-shortcode-login.php:
|
2629 |
msgid "You are already logged in. <a href=\"%s\">Log out?</a>"
|
2630 |
msgstr ""
|
2631 |
|
@@ -2650,10 +2663,8 @@ msgstr ""
|
|
2650 |
msgid "Password reset is not allowed for this user"
|
2651 |
msgstr ""
|
2652 |
|
2653 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2654 |
-
msgid ""
|
2655 |
-
"The email could not be sent. Possible reason: your host may have disabled "
|
2656 |
-
"the mail() function. "
|
2657 |
msgstr ""
|
2658 |
|
2659 |
#: templates/myaccount/dashboard.php:29
|
@@ -2744,7 +2755,10 @@ msgid "Password reset email has been sent."
|
|
2744 |
msgstr ""
|
2745 |
|
2746 |
#: templates/myaccount/lost-password-confirmation.php:27
|
2747 |
-
msgid "
|
|
|
|
|
|
|
2748 |
msgstr ""
|
2749 |
|
2750 |
#. Plugin URI of the plugin/theme
|
@@ -2913,22 +2927,22 @@ msgctxt "The action on users list page"
|
|
2913 |
msgid "Deny"
|
2914 |
msgstr ""
|
2915 |
|
2916 |
-
#: includes/class-ur-install.php:
|
2917 |
msgctxt "Page slug"
|
2918 |
msgid "my-account"
|
2919 |
msgstr ""
|
2920 |
|
2921 |
-
#: includes/class-ur-install.php:
|
2922 |
msgctxt "Page slug"
|
2923 |
msgid "registration"
|
2924 |
msgstr ""
|
2925 |
|
2926 |
-
#: includes/class-ur-install.php:
|
2927 |
msgctxt "Page title"
|
2928 |
msgid "My Account"
|
2929 |
msgstr ""
|
2930 |
|
2931 |
-
#: includes/class-ur-install.php:
|
2932 |
msgctxt "Page title"
|
2933 |
msgid "Registration"
|
2934 |
msgstr ""
|
2 |
# This file is distributed under the same license as the User Registration package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: User Registration 1.3.0\n"
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
+
"POT-Creation-Date: 2018-05-10 06:10:07+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.1\n"
|
15 |
|
16 |
+
#: includes/abstracts/abstract-ur-form-field.php:295
|
17 |
+
#: includes/functions-ur-core.php:535
|
18 |
msgid "Description"
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: includes/abstracts/abstract-ur-form-field.php:325
|
22 |
msgid "General Settings"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: includes/abstracts/abstract-ur-form-field.php:337
|
26 |
msgid "Advance Settings"
|
27 |
msgstr ""
|
28 |
|
95 |
msgstr ""
|
96 |
|
97 |
#: includes/admin/class-ur-admin-menus.php:303
|
98 |
+
#: includes/class-ur-install.php:600
|
99 |
msgid "Settings"
|
100 |
msgstr ""
|
101 |
|
367 |
msgid "Emails"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: includes/admin/settings/class-ur-settings-email.php:71
|
371 |
msgid "General Email Settings"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: includes/admin/settings/class-ur-settings-email.php:84
|
375 |
msgid "Email notifications"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: includes/admin/settings/class-ur-settings-email.php:84
|
379 |
msgid ""
|
380 |
"Email notifications sent from user registration are listed below. Click on "
|
381 |
"an email to configure it."
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: includes/admin/settings/class-ur-settings-email.php:93
|
385 |
msgid "Email Sender Options"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: includes/admin/settings/class-ur-settings-email.php:100
|
389 |
msgid "\"From\" name"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: includes/admin/settings/class-ur-settings-email.php:101
|
393 |
msgid "How the sender name appears in outgoing user registration emails."
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: includes/admin/settings/class-ur-settings-email.php:111
|
397 |
msgid "\"From\" address"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: includes/admin/settings/class-ur-settings-email.php:112
|
401 |
msgid "How the sender email appears in outgoing user registration emails."
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: includes/admin/settings/class-ur-settings-email.php:146
|
405 |
msgid "Email"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: includes/admin/settings/class-ur-settings-email.php:147
|
409 |
+
#: includes/admin/settings/class-ur-settings-email.php:167
|
410 |
msgid "Configure"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: includes/admin/settings/class-ur-settings-email.php:220
|
414 |
msgid "Smart Tags Used"
|
415 |
msgstr ""
|
416 |
|
429 |
msgstr ""
|
430 |
|
431 |
#: includes/admin/settings/class-ur-settings-general.php:77
|
432 |
+
#: includes/functions-ur-core.php:658
|
433 |
msgid "Default user role"
|
434 |
msgstr ""
|
435 |
|
493 |
msgstr ""
|
494 |
|
495 |
#: includes/admin/settings/class-ur-settings-general.php:154
|
496 |
+
#: includes/functions-ur-core.php:672
|
497 |
msgid "Enable strong password"
|
498 |
msgstr ""
|
499 |
|
502 |
msgstr ""
|
503 |
|
504 |
#: includes/admin/settings/class-ur-settings-general.php:163
|
505 |
+
#: includes/functions-ur-core.php:687
|
506 |
msgid "Form submit button label"
|
507 |
msgstr ""
|
508 |
|
552 |
msgstr ""
|
553 |
|
554 |
#: includes/admin/settings/class-ur-settings-general.php:247
|
555 |
+
#: includes/functions-ur-core.php:749
|
556 |
msgid "Manual login after registration"
|
557 |
msgstr ""
|
558 |
|
567 |
msgstr ""
|
568 |
|
569 |
#: includes/admin/settings/class-ur-settings-general.php:257
|
570 |
+
#: includes/functions-ur-core.php:750
|
571 |
msgid "Email confirmation to login"
|
572 |
msgstr ""
|
573 |
|
580 |
#: includes/admin/settings/class-ur-settings-general.php:263
|
581 |
msgid ""
|
582 |
"User registered. Verify your email by clicking on the link sent to your "
|
583 |
+
"email."
|
584 |
msgstr ""
|
585 |
|
586 |
#: includes/admin/settings/class-ur-settings-general.php:267
|
587 |
+
#: includes/functions-ur-core.php:752
|
588 |
msgid "Admin approval after registration"
|
589 |
msgstr ""
|
590 |
|
637 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:36
|
638 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:36
|
639 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:35
|
640 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:34
|
641 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:36
|
642 |
msgid "Return to emails"
|
643 |
msgstr ""
|
647 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:49
|
648 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:49
|
649 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:48
|
650 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:46
|
651 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:49
|
652 |
msgid "Enable this email"
|
653 |
msgstr ""
|
662 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:58
|
663 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:58
|
664 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:57
|
665 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:54
|
666 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:58
|
667 |
msgid "Email Subject"
|
668 |
msgstr ""
|
673 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:59
|
674 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:59
|
675 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:58
|
676 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:55
|
677 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:59
|
678 |
msgid "The email subject you want to customize."
|
679 |
msgstr ""
|
689 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:69
|
690 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:69
|
691 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:67
|
692 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:64
|
693 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:67
|
694 |
msgid "Email Content"
|
695 |
msgstr ""
|
700 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:70
|
701 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:70
|
702 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:68
|
703 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:65
|
704 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:68
|
705 |
msgid "The email content you want to customize."
|
706 |
msgstr ""
|
792 |
msgid "Sorry! Registration changed to pending on {{blog_info}}"
|
793 |
msgstr ""
|
794 |
|
795 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:23
|
796 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:34
|
797 |
+
msgid "Reset Password Email"
|
798 |
+
msgstr ""
|
799 |
+
|
800 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:24
|
801 |
+
msgid "Email sent to the user when a user requests for reset password"
|
802 |
+
msgstr ""
|
803 |
+
|
804 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:47
|
805 |
+
msgid "Enable this email sent to the user when a user requests for reset password."
|
806 |
+
msgstr ""
|
807 |
+
|
808 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:58
|
809 |
+
#: includes/class-ur-emailer.php:324
|
810 |
+
msgid "Password Reset Email: {{blog_info}}"
|
811 |
+
msgstr ""
|
812 |
+
|
813 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:25
|
814 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:36
|
815 |
msgid "Successfully Registered Email"
|
1007 |
msgstr ""
|
1008 |
|
1009 |
#: includes/class-ur-ajax.php:114 includes/class-ur-shortcodes.php:121
|
1010 |
+
#: includes/functions-ur-account.php:81
|
1011 |
msgid "Logout"
|
1012 |
msgstr ""
|
1013 |
|
1027 |
msgid "Token Mismatch!"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
+
#: includes/class-ur-email-confirmation.php:53
|
1031 |
+
msgid "Verification Email Sent!"
|
1032 |
+
msgstr ""
|
1033 |
+
|
1034 |
+
#: includes/class-ur-email-confirmation.php:57
|
1035 |
+
msgid "User doesnot exist!"
|
1036 |
+
msgstr ""
|
1037 |
+
|
1038 |
+
#: includes/class-ur-email-confirmation.php:181
|
1039 |
#: includes/class-ur-user-approval.php:183
|
1040 |
#: includes/class-ur-user-approval.php:188
|
1041 |
msgid "ERROR:"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
+
#: includes/class-ur-email-confirmation.php:204
|
1045 |
msgid ""
|
1046 |
+
"Email not verified! Verifiy your email by clicking on the link sent to your "
|
1047 |
+
"email."
|
|
|
|
|
|
|
|
|
1048 |
msgstr ""
|
1049 |
|
1050 |
#: includes/class-ur-emailer.php:83
|
1051 |
msgid "Chosen Password"
|
1052 |
msgstr ""
|
1053 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1054 |
#: includes/class-ur-form-handler.php:99 includes/class-ur-form-handler.php:216
|
1055 |
msgid "%s is a required field."
|
1056 |
msgstr ""
|
1132 |
msgid "Passwords do not match."
|
1133 |
msgstr ""
|
1134 |
|
1135 |
+
#: includes/class-ur-frontend-scripts.php:310
|
1136 |
msgid "Captcha code error, please try again."
|
1137 |
msgstr ""
|
1138 |
|
1139 |
+
#: includes/class-ur-frontend-scripts.php:321
|
1140 |
msgid "Confirm password"
|
1141 |
msgstr ""
|
1142 |
|
1143 |
+
#: includes/class-ur-frontend-scripts.php:323
|
1144 |
msgid "Too short password"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
+
#: includes/class-ur-frontend-scripts.php:324
|
1148 |
msgid "Bad password"
|
1149 |
msgstr ""
|
1150 |
|
1151 |
+
#: includes/class-ur-frontend-scripts.php:325
|
1152 |
msgid "Good password"
|
1153 |
msgstr ""
|
1154 |
|
1155 |
+
#: includes/class-ur-frontend-scripts.php:326
|
1156 |
msgid "Strong password"
|
1157 |
msgstr ""
|
1158 |
|
1159 |
+
#: includes/class-ur-frontend-scripts.php:327
|
1160 |
msgid "Password with confirm password not matched."
|
1161 |
msgstr ""
|
1162 |
|
1163 |
+
#: includes/class-ur-frontend-scripts.php:330
|
1164 |
msgid ""
|
1165 |
"Hint: The password should be a at least seven characters long. To make it "
|
1166 |
"stronger, user upper and lower case letters, numbers and symbol like ! * ? "
|
1167 |
"$ % ^ & )."
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: includes/class-ur-install.php:331
|
1171 |
msgid "Default form"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
+
#: includes/class-ur-install.php:600
|
1175 |
msgid "View User Registration settings"
|
1176 |
msgstr ""
|
1177 |
|
1178 |
+
#: includes/class-ur-install.php:616
|
1179 |
msgid "View User Registration documentation"
|
1180 |
msgstr ""
|
1181 |
|
1182 |
+
#: includes/class-ur-install.php:616
|
1183 |
msgid "Docs"
|
1184 |
msgstr ""
|
1185 |
|
1186 |
+
#: includes/class-ur-install.php:617
|
1187 |
msgid "Visit free customer support"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
+
#: includes/class-ur-install.php:617
|
1191 |
msgid "Free support"
|
1192 |
msgstr ""
|
1193 |
|
1308 |
msgid "Parent registration"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
+
#: includes/class-ur-query.php:73 includes/functions-ur-account.php:80
|
1312 |
msgid "Account details"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
+
#: includes/class-ur-query.php:76 includes/functions-ur-account.php:79
|
1316 |
msgid "Profile Details"
|
1317 |
msgstr ""
|
1318 |
|
2330 |
msgid "Country"
|
2331 |
msgstr ""
|
2332 |
|
2333 |
+
#: includes/form/class-ur-description.php:44
|
2334 |
+
#: includes/form/class-ur-description.php:51
|
2335 |
+
msgid "User Bio"
|
2336 |
+
msgstr ""
|
2337 |
+
|
2338 |
+
#: includes/form/class-ur-display-name.php:44
|
2339 |
+
#: includes/form/class-ur-display-name.php:50
|
2340 |
+
msgid "Display Name"
|
2341 |
+
msgstr ""
|
2342 |
+
|
2343 |
#: includes/form/class-ur-email.php:44
|
2344 |
msgid "Secondary Email "
|
2345 |
msgstr ""
|
2348 |
msgid "Secondary Email"
|
2349 |
msgstr ""
|
2350 |
|
2351 |
+
#: includes/form/class-ur-first-name.php:44
|
2352 |
+
#: includes/form/class-ur-first-name.php:50
|
2353 |
+
msgid "First Name"
|
2354 |
+
msgstr ""
|
2355 |
+
|
2356 |
+
#: includes/form/class-ur-last-name.php:44
|
2357 |
+
msgid "Last Name "
|
2358 |
+
msgstr ""
|
2359 |
+
|
2360 |
+
#: includes/form/class-ur-last-name.php:50
|
2361 |
+
msgid "Last Name"
|
2362 |
+
msgstr ""
|
2363 |
+
|
2364 |
+
#: includes/form/class-ur-nickname.php:44
|
2365 |
+
#: includes/form/class-ur-nickname.php:50
|
2366 |
+
msgid "Nickname"
|
2367 |
+
msgstr ""
|
2368 |
+
|
2369 |
#: includes/form/class-ur-number.php:44 includes/form/class-ur-number.php:51
|
2370 |
msgid "Number"
|
2371 |
msgstr ""
|
2401 |
msgid "Confirm Password"
|
2402 |
msgstr ""
|
2403 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2404 |
#: includes/form/class-ur-user-email.php:44
|
2405 |
msgid "Email "
|
2406 |
msgstr ""
|
2417 |
msgid "Email already exists."
|
2418 |
msgstr ""
|
2419 |
|
2420 |
+
#: includes/form/class-ur-user-login.php:44
|
2421 |
+
#: includes/form/class-ur-user-login.php:51
|
2422 |
+
msgid "Username"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2423 |
msgstr ""
|
2424 |
|
2425 |
+
#: includes/form/class-ur-user-login.php:73
|
2426 |
+
msgid "Username already exists."
|
2427 |
msgstr ""
|
2428 |
|
2429 |
+
#: includes/form/class-ur-user-login.php:89
|
2430 |
+
msgid "Invalid username"
|
|
|
2431 |
msgstr ""
|
2432 |
|
2433 |
+
#: includes/form/class-ur-user-pass.php:44
|
2434 |
msgid "Password "
|
2435 |
msgstr ""
|
2436 |
|
2437 |
+
#: includes/form/class-ur-user-pass.php:50
|
2438 |
msgid "User Password"
|
2439 |
msgstr ""
|
2440 |
|
2441 |
+
#: includes/form/class-ur-user-pass.php:73
|
2442 |
msgid "Empty password."
|
2443 |
msgstr ""
|
2444 |
|
2447 |
msgid "Website"
|
2448 |
msgstr ""
|
2449 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2450 |
#: includes/form/settings/class-ur-setting-checkbox.php:41
|
2451 |
#: includes/form/settings/class-ur-setting-checkbox.php:55
|
2452 |
#: includes/form/settings/class-ur-setting-country.php:41
|
2526 |
msgid "Required form field not found."
|
2527 |
msgstr ""
|
2528 |
|
2529 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:224
|
2530 |
msgid "Empty confirm password"
|
2531 |
msgstr ""
|
2532 |
|
2533 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:226
|
2534 |
msgid "Password and confirm password not matched"
|
2535 |
msgstr ""
|
2536 |
|
2537 |
+
#: includes/functions-ur-account.php:78
|
2538 |
msgid "Dashboard"
|
2539 |
msgstr ""
|
2540 |
|
2541 |
+
#: includes/functions-ur-core.php:528 includes/functions-ur-core.php:530
|
2542 |
+
#: includes/functions-ur-core.php:537
|
2543 |
msgid "Label"
|
2544 |
msgstr ""
|
2545 |
|
2546 |
+
#: includes/functions-ur-core.php:542 includes/functions-ur-core.php:544
|
2547 |
msgid "Field Name"
|
2548 |
msgstr ""
|
2549 |
|
2550 |
+
#: includes/functions-ur-core.php:550 includes/functions-ur-core.php:552
|
2551 |
msgid "Placeholder"
|
2552 |
msgstr ""
|
2553 |
|
2554 |
+
#: includes/functions-ur-core.php:557
|
2555 |
msgid "Required"
|
2556 |
msgstr ""
|
2557 |
|
2558 |
+
#: includes/functions-ur-core.php:562 includes/functions-ur-core.php:573
|
2559 |
+
#: includes/functions-ur-core.php:680 includes/functions-ur-core.php:708
|
2560 |
msgid "No"
|
2561 |
msgstr ""
|
2562 |
|
2563 |
+
#: includes/functions-ur-core.php:563 includes/functions-ur-core.php:574
|
2564 |
+
#: includes/functions-ur-core.php:679 includes/functions-ur-core.php:707
|
2565 |
msgid "Yes"
|
2566 |
msgstr ""
|
2567 |
|
2568 |
+
#: includes/functions-ur-core.php:568
|
2569 |
msgid "Hide Label"
|
2570 |
msgstr ""
|
2571 |
|
2572 |
+
#: includes/functions-ur-core.php:700
|
2573 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
2574 |
msgstr ""
|
2575 |
|
2576 |
+
#: includes/functions-ur-core.php:716
|
2577 |
msgid "Template"
|
2578 |
msgstr ""
|
2579 |
|
2580 |
+
#: includes/functions-ur-core.php:723
|
2581 |
msgid "Default"
|
2582 |
msgstr ""
|
2583 |
|
2584 |
+
#: includes/functions-ur-core.php:724
|
2585 |
msgid "Bordered"
|
2586 |
msgstr ""
|
2587 |
|
2588 |
+
#: includes/functions-ur-core.php:725
|
2589 |
msgid "Flat"
|
2590 |
msgstr ""
|
2591 |
|
2592 |
+
#: includes/functions-ur-core.php:726
|
2593 |
msgid "Rounded"
|
2594 |
msgstr ""
|
2595 |
|
2596 |
+
#: includes/functions-ur-core.php:727
|
2597 |
msgid "Rounded Edge"
|
2598 |
msgstr ""
|
2599 |
|
2600 |
+
#: includes/functions-ur-core.php:751
|
2601 |
msgid "Auto login after registration"
|
2602 |
msgstr ""
|
2603 |
|
2604 |
+
#: includes/functions-ur-core.php:976
|
2605 |
msgid ""
|
2606 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
2607 |
"filter must implement <code>UR_Logger_Interface</code>."
|
2608 |
msgstr ""
|
2609 |
|
2610 |
+
#: includes/functions-ur-core.php:1065
|
2611 |
msgid "Disable emails"
|
2612 |
msgstr ""
|
2613 |
|
2614 |
+
#: includes/functions-ur-core.php:1066
|
2615 |
msgid "Disable all emails sent after registration."
|
2616 |
msgstr ""
|
2617 |
|
2638 |
msgid "This method should not be called before plugins_loaded."
|
2639 |
msgstr ""
|
2640 |
|
2641 |
+
#: includes/shortcodes/class-ur-shortcode-login.php:57
|
2642 |
msgid "You are already logged in. <a href=\"%s\">Log out?</a>"
|
2643 |
msgstr ""
|
2644 |
|
2663 |
msgid "Password reset is not allowed for this user"
|
2664 |
msgstr ""
|
2665 |
|
2666 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:271
|
2667 |
+
msgid "The email could not be sent. Contact your site administrator. "
|
|
|
|
|
2668 |
msgstr ""
|
2669 |
|
2670 |
#: templates/myaccount/dashboard.php:29
|
2755 |
msgstr ""
|
2756 |
|
2757 |
#: templates/myaccount/lost-password-confirmation.php:27
|
2758 |
+
msgid ""
|
2759 |
+
"A password reset email has been sent to the email address on file for your "
|
2760 |
+
"account, but may take several minutes to show up in your inbox. Please wait "
|
2761 |
+
"at least 10 minutes before attempting another reset."
|
2762 |
msgstr ""
|
2763 |
|
2764 |
#. Plugin URI of the plugin/theme
|
2927 |
msgid "Deny"
|
2928 |
msgstr ""
|
2929 |
|
2930 |
+
#: includes/class-ur-install.php:271
|
2931 |
msgctxt "Page slug"
|
2932 |
msgid "my-account"
|
2933 |
msgstr ""
|
2934 |
|
2935 |
+
#: includes/class-ur-install.php:280
|
2936 |
msgctxt "Page slug"
|
2937 |
msgid "registration"
|
2938 |
msgstr ""
|
2939 |
|
2940 |
+
#: includes/class-ur-install.php:272
|
2941 |
msgctxt "Page title"
|
2942 |
msgid "My Account"
|
2943 |
msgstr ""
|
2944 |
|
2945 |
+
#: includes/class-ur-install.php:281
|
2946 |
msgctxt "Page title"
|
2947 |
msgid "Registration"
|
2948 |
msgstr ""
|
package-lock.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
-
"version": "1.
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
@@ -3929,6 +3929,12 @@
|
|
3929 |
}
|
3930 |
}
|
3931 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3932 |
"string-width": {
|
3933 |
"version": "1.0.2",
|
3934 |
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
|
@@ -3940,12 +3946,6 @@
|
|
3940 |
"strip-ansi": "3.0.1"
|
3941 |
}
|
3942 |
},
|
3943 |
-
"string_decoder": {
|
3944 |
-
"version": "0.10.31",
|
3945 |
-
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
3946 |
-
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
|
3947 |
-
"dev": true
|
3948 |
-
},
|
3949 |
"stringify-entities": {
|
3950 |
"version": "1.3.1",
|
3951 |
"resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-1.3.1.tgz",
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
+
"version": "1.3.0",
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
3929 |
}
|
3930 |
}
|
3931 |
},
|
3932 |
+
"string_decoder": {
|
3933 |
+
"version": "0.10.31",
|
3934 |
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
3935 |
+
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
|
3936 |
+
"dev": true
|
3937 |
+
},
|
3938 |
"string-width": {
|
3939 |
"version": "1.0.2",
|
3940 |
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
|
3946 |
"strip-ansi": "3.0.1"
|
3947 |
}
|
3948 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3949 |
"stringify-entities": {
|
3950 |
"version": "1.3.1",
|
3951 |
"resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-1.3.1.tgz",
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WPEverest
|
|
3 |
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form, user login, membership
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -93,6 +93,14 @@ Yes, the plugin is designed to work with any themes that have been coded followi
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
= 1.2.5.1 - 27/04/2018 =
|
97 |
* Tweak - Text color of paragraph in myaccount section
|
98 |
* Fix - Use template_redirect hook instead to check verification token
|
@@ -136,41 +144,9 @@ Yes, the plugin is designed to work with any themes that have been coded followi
|
|
136 |
* Feature - Redirect to custom page via email.
|
137 |
* Refactor - Usermeta data store process.
|
138 |
|
139 |
-
= 1.1.8 - 02/02/2018 =
|
140 |
-
* Fix - Default admin email subject
|
141 |
-
|
142 |
-
= 1.1.7 - 02/02/2018 =
|
143 |
-
* Feature - Email Customizer
|
144 |
-
* Fix - Broken dependencies on scripts
|
145 |
-
* Fix - Fix fatal error in PHP version < 5.5
|
146 |
-
* Fix - Json unescaped unicode
|
147 |
-
|
148 |
-
= 1.1.6 - 10/01/2018 =
|
149 |
-
* Feature - Privacy Policy checkbox field added
|
150 |
-
* Feature - Radio button field added
|
151 |
-
* Fix - Welcome message reappearing issue
|
152 |
-
* Fix - User data deletion on uninstall
|
153 |
-
* Fix - Undefined function call ur_get_notices
|
154 |
-
* Fix - Shortcode issue with elementor
|
155 |
-
|
156 |
-
= 1.1.5 - 03/12/2017 =
|
157 |
-
* Feature - Introduced Checkbox form field
|
158 |
-
* Feature - Email confirmation option for login
|
159 |
-
* Feature - Disable Email option
|
160 |
-
* Fix - Select box issue in user profile
|
161 |
-
* Fix - Shortcode content appearing on top
|
162 |
-
* Fix - Administrator status set to pending in admin approval
|
163 |
-
|
164 |
-
= 1.1.3 - 17/10/2017 =
|
165 |
-
* Fix - Login shortcode required parameter issue resolved.
|
166 |
-
= 1.1.2 - 16/10/2017 =
|
167 |
-
|
168 |
-
* Feature - New shortcode for login [user_registration_login]
|
169 |
-
* Feature - 2 More template added for user registration form
|
170 |
-
* Feature - WordPress rating link on user registration admin section
|
171 |
-
* Fix - Disable profile detail tab (if there is no data) on user dashboard
|
172 |
-
* Fix - form design improvement
|
173 |
-
* Fix - Escaping issue of form builder
|
174 |
-
* Fix - Datepicker issue on safari ( added new jquery datepicker)
|
175 |
-
* Fix - Email message formatting
|
176 |
[See changelog for all versions](https://raw.githubusercontent.com/wpeverest/user-registration/master/CHANGELOG.txt).
|
|
|
|
|
|
|
|
|
|
3 |
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form, user login, membership
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.3.0
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.3.0 - - 11/05/2018 =
|
97 |
+
* Refactor - user_password field for mod security reason
|
98 |
+
* Refactor - Meta keys and field keys
|
99 |
+
* Feature - Cutomizable reset password email
|
100 |
+
* Feature - Deafult user fields on profile tab in my account section
|
101 |
+
* Fix - Redirect via template_redirect hook removing js redirection
|
102 |
+
* Add - Filter hooks for every email classes
|
103 |
+
|
104 |
= 1.2.5.1 - 27/04/2018 =
|
105 |
* Tweak - Text color of paragraph in myaccount section
|
106 |
* Fix - Use template_redirect hook instead to check verification token
|
144 |
* Feature - Redirect to custom page via email.
|
145 |
* Refactor - Usermeta data store process.
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
[See changelog for all versions](https://raw.githubusercontent.com/wpeverest/user-registration/master/CHANGELOG.txt).
|
148 |
+
|
149 |
+
== Upgrade Notice ==
|
150 |
+
|
151 |
+
= 1.3.0 =
|
152 |
+
1.3.0 is a major release. Make a full site backup and run the database updater immediately after the upgrade.
|
templates/myaccount/lost-password-confirmation.php
CHANGED
@@ -24,4 +24,4 @@ ur_print_notices();
|
|
24 |
ur_print_notice( __( 'Password reset email has been sent.', 'user-registration' ) );
|
25 |
?>
|
26 |
|
27 |
-
<p><?php echo apply_filters( 'user_registration_lost_password_message', __( 'A password reset email has been sent to the email address.', 'user-registration' ) ); ?></p>
|
24 |
ur_print_notice( __( 'Password reset email has been sent.', 'user-registration' ) );
|
25 |
?>
|
26 |
|
27 |
+
<p><?php echo apply_filters( 'user_registration_lost_password_message', __( 'A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.', 'user-registration' ) ); ?></p>
|
user-registration.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration and login form builder.
|
6 |
-
* Version: 1.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
@@ -30,7 +30,7 @@ final class UserRegistration {
|
|
30 |
* Plugin version.
|
31 |
* @var string
|
32 |
*/
|
33 |
-
public $version = '1.
|
34 |
|
35 |
/**
|
36 |
* Session instance.
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration and login form builder.
|
6 |
+
* Version: 1.3.0
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
30 |
* Plugin version.
|
31 |
* @var string
|
32 |
*/
|
33 |
+
public $version = '1.3.0';
|
34 |
|
35 |
/**
|
36 |
* Session instance.
|