User Registration – Custom Registration Form, Login Form And User Profile For WordPress - Version 1.4.8

Version Description

  • 09/10/2018 =
  • Fix - Default reCaptcha checked on login settings
  • Fix - Deactivation notice on certain conditions
  • Fix - Multiselect support on form settings
  • Tweak - Formwise settings save format
Download this release

Release Info

Developer wpeverest
Plugin Icon 128x128 User Registration – Custom Registration Form, Login Form And User Profile For WordPress
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.7 to 1.4.8

assets/js/admin/admin.js CHANGED
@@ -40,7 +40,7 @@ jQuery(function ( $ ) {
40
  var appending_id = $( value ).attr('id');
41
 
42
  // Append the title and div now under form settings.
43
- if( form_settings_section.find('#'+appending_id).length === 0 ) {
44
  form_settings_section.append('<div id="'+ appending_id +'">'+appending_text+'</div>');
45
  }
46
 
@@ -466,10 +466,13 @@ jQuery(function ( $ ) {
466
  var form_data = get_form_data();
467
  var ur_form_id = $('#ur_form_id').val();
468
  var ur_form_id_localization = user_registration_admin_data.post_id;
 
469
  if ( ur_parse_int(ur_form_id_localization, 0) !== ur_parse_int(ur_form_id, 0) ) {
470
  ur_form_id = 0;
471
  }
 
472
  var form_setting_data = $('#ur-field-settings').serializeArray();
 
473
  var data = {
474
  action: 'user_registration_form_save_action',
475
  security: user_registration_admin_data.ur_form_save,
40
  var appending_id = $( value ).attr('id');
41
 
42
  // Append the title and div now under form settings.
43
+ if( form_settings_section.find('#'+appending_id).length === 0 ) {
44
  form_settings_section.append('<div id="'+ appending_id +'">'+appending_text+'</div>');
45
  }
46
 
466
  var form_data = get_form_data();
467
  var ur_form_id = $('#ur_form_id').val();
468
  var ur_form_id_localization = user_registration_admin_data.post_id;
469
+
470
  if ( ur_parse_int(ur_form_id_localization, 0) !== ur_parse_int(ur_form_id, 0) ) {
471
  ur_form_id = 0;
472
  }
473
+
474
  var form_setting_data = $('#ur-field-settings').serializeArray();
475
+
476
  var data = {
477
  action: 'user_registration_form_save_action',
478
  security: user_registration_admin_data.ur_form_save,
assets/js/admin/plugins.js CHANGED
@@ -11,7 +11,12 @@ jQuery( function( $ ) {
11
 
12
  $.post( ur_plugins_params.ajax_url, data, function( response ) {
13
  $( 'tr[data-plugin="user-registration/user-registration.php"] span.deactivate a' ).addClass( 'hasNotice' );
14
- $( 'tr[id="user-registration-license-row"]' ).addClass( 'update user-registration-deactivation-notice' ).after( response );
 
 
 
 
 
15
  }).fail( function( xhr ) {
16
  window.console.log( xhr.responseText );
17
  });
11
 
12
  $.post( ur_plugins_params.ajax_url, data, function( response ) {
13
  $( 'tr[data-plugin="user-registration/user-registration.php"] span.deactivate a' ).addClass( 'hasNotice' );
14
+
15
+ if( $( 'tr[id="user-registration-license-row"]' ).length !== 0 ) {
16
+ $( 'tr[id="user-registration-license-row"]' ).addClass( 'update user-registration-deactivation-notice' ).after( response );
17
+ } else {
18
+ $( 'tr[data-plugin="user-registration/user-registration.php"]' ).addClass( 'update user-registration-deactivation-notice' ).after( response );
19
+ }
20
  }).fail( function( xhr ) {
21
  window.console.log( xhr.responseText );
22
  });
assets/js/admin/plugins.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(t){t(document.body).on("click",'tr[data-plugin="user-registration/user-registration.php"] span.deactivate a:not(.hasNotice)',function(a){a.preventDefault();var i={action:"user_registration_deactivation_notice",security:ur_plugins_params.deactivation_nonce};t.post(ur_plugins_params.ajax_url,i,function(a){t('tr[data-plugin="user-registration/user-registration.php"] span.deactivate a').addClass("hasNotice"),t('tr[id="user-registration-license-row"]').addClass("update user-registration-deactivation-notice").after(a)}).fail(function(t){window.console.log(t.responseText)})})});
1
+ jQuery(function(t){t(document.body).on("click",'tr[data-plugin="user-registration/user-registration.php"] span.deactivate a:not(.hasNotice)',function(a){a.preventDefault();var e={action:"user_registration_deactivation_notice",security:ur_plugins_params.deactivation_nonce};t.post(ur_plugins_params.ajax_url,e,function(a){t('tr[data-plugin="user-registration/user-registration.php"] span.deactivate a').addClass("hasNotice"),0!==t('tr[id="user-registration-license-row"]').length?t('tr[id="user-registration-license-row"]').addClass("update user-registration-deactivation-notice").after(a):t('tr[data-plugin="user-registration/user-registration.php"]').addClass("update user-registration-deactivation-notice").after(a)}).fail(function(t){window.console.log(t.responseText)})})});
includes/admin/class-ur-admin-settings.php CHANGED
@@ -534,7 +534,7 @@ class UR_Admin_Settings {
534
  </td>
535
  </tr><?php
536
  break;
537
-
538
  case 'tinymce':
539
 
540
  $settings = array(
534
  </td>
535
  </tr><?php
536
  break;
537
+
538
  case 'tinymce':
539
 
540
  $settings = array(
includes/admin/functions-ur-admin.php CHANGED
@@ -33,7 +33,7 @@ function ur_get_screen_ids() {
33
 
34
  return apply_filters( 'user_registration_screen_ids', $screen_ids );
35
  }
36
-
37
  // Hook into exporter and eraser tool.
38
  add_filter( 'wp_privacy_personal_data_exporters', 'user_registration_register_data_exporter', 10 );
39
  add_filter( 'wp_privacy_personal_data_erasers', 'user_registration_register_data_eraser' );
@@ -44,7 +44,7 @@ add_filter( 'wp_privacy_personal_data_erasers', 'user_registration_register_data
44
  * @return array
45
  */
46
  function user_registration_register_data_exporter( $exporters ) {
47
-
48
  $exporters['user-registration'] = array(
49
  'exporter_friendly_name' => __( 'User Extra Information', 'user-registration' ),
50
  'callback' => 'user_registration_data_exporter',
@@ -60,12 +60,12 @@ function user_registration_register_data_exporter( $exporters ) {
60
  * @return array exporting data
61
  */
62
  function user_registration_data_exporter( $email_address, $page = 1 ) {
63
-
64
  global $wpdb;
65
-
66
  $form_data = array();
67
  $posts = get_posts( 'post_type=user_registration' );
68
-
69
  // Get array of field name label mapping of user registration fields.
70
  foreach( $posts as $post ) {
71
  $post_content = isset( $post->post_content ) ? $post->post_content : '';
@@ -74,17 +74,17 @@ function user_registration_data_exporter( $email_address, $page = 1 ) {
74
  foreach ( $post_content_row as $post_content_grid ) {
75
  foreach ( $post_content_grid as $field ) {
76
  if( isset( $field->field_key ) && isset( $field->general_setting->field_name ) ) {
77
- $form_data[ $field->general_setting->field_name ] = $field->general_setting->label;
78
  }
79
  }
80
  }
81
  }
82
- }
83
-
84
  $user = get_user_by( 'email', $email_address );
85
  $user_id = isset( $user->ID ) ? $user->ID : 0;
86
  $usermeta = $wpdb->get_results( "SELECT * FROM $wpdb->usermeta WHERE meta_key LIKE 'user_registration\_%' AND user_id = ". $user_id ." ;" );
87
-
88
  $export_items = array();
89
  if( $usermeta && is_array( $usermeta )) {
90
 
@@ -97,21 +97,21 @@ function user_registration_data_exporter( $email_address, $page = 1 ) {
97
  $meta->meta_value = unserialize( $meta->meta_value );
98
  $meta->meta_value = implode( ",", $meta->meta_value );
99
  }
100
-
101
- $data[] =
102
  array( 'name' => $form_data[ $strip_prefix ],
103
  'value' => $meta->meta_value,
104
  );
105
  }
106
  }
107
-
108
  $export_items[] = array(
109
  'group_id' => 'user-registration',
110
  'group_label' => __( 'User Extra Information', 'user-registration' ),
111
  'item_id' => "user-registration-{$meta->umeta_id}",
112
  'data' => $data,
113
  );
114
- }
115
 
116
  return array(
117
  'data' => $export_items,
@@ -139,9 +139,9 @@ function user_registration_register_data_eraser( $erasers = array() ) {
139
  * @return array
140
  */
141
  function user_registration_data_eraser( $email_address, $page = 1 ) {
142
-
143
  global $wpdb;
144
-
145
  if ( empty( $email_address ) ) {
146
  return array(
147
  'items_removed' => false,
@@ -152,7 +152,7 @@ function user_registration_data_eraser( $email_address, $page = 1 ) {
152
  }
153
 
154
  $user = get_user_by( 'email', $email_address );
155
-
156
  $messages = array();
157
  $items_removed = false;
158
  $items_retained = false;
@@ -160,10 +160,10 @@ function user_registration_data_eraser( $email_address, $page = 1 ) {
160
  if ( $user && $user->ID ) {
161
  $user_id = $user->ID;
162
  $delete_usermeta = $wpdb->get_results( "DELETE FROM $wpdb->usermeta WHERE meta_key LIKE 'user_registration\_%' AND user_id = ". $user_id ." ;" );
163
-
164
  $delete_form_data = $wpdb->get_results( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'ur_form_id' AND user_id = ". $user_id ." ;");
165
 
166
- if( $delete_usermeta && $delete_form_data ) {
167
  $items_removed = true;
168
  }
169
  }
@@ -308,9 +308,9 @@ function user_registration_settings_get_option( $option_name, $default = '' ) {
308
  return UR_Admin_Settings::get_option( $option_name, $default );
309
  }
310
 
311
-
312
  /**
313
- * @param int $form_id
 
314
  */
315
  function ur_admin_form_settings( $form_id = 0 ) {
316
 
@@ -326,15 +326,22 @@ function ur_admin_form_settings( $form_id = 0 ) {
326
 
327
 
328
  /**
329
- * @param $setting_data
330
- * @param $form_id
 
331
  */
332
  function ur_update_form_settings( $setting_data, $form_id ) {
333
  $remap_setting_data = array();
334
 
 
335
  foreach ( $setting_data as $setting ) {
336
 
337
  if ( isset( $setting['name'] ) ) {
 
 
 
 
 
338
  $remap_setting_data[ $setting['name'] ] = $setting;
339
  }
340
  }
@@ -342,14 +349,65 @@ function ur_update_form_settings( $setting_data, $form_id ) {
342
  $setting_fields = apply_filters( 'user_registration_form_settings_save', ur_admin_form_settings_fields( $form_id ), $form_id );
343
 
344
  foreach ( $setting_fields as $field_data ) {
345
-
346
  if ( isset( $field_data['id'] ) && isset( $remap_setting_data[ $field_data['id'] ] ) ) {
347
 
348
  if ( isset( $remap_setting_data[ $field_data['id'] ]['value'] ) ) {
349
- $remap_setting_data[ $field_data['id'] ]['value'] = sanitize_text_field( $remap_setting_data[ $field_data['id'] ]['value'] );
 
 
 
 
 
 
 
350
 
351
  update_post_meta( $form_id, $field_data['id'], $remap_setting_data[ $field_data['id'] ]['value'] );
352
  }
 
 
 
353
  }
354
  }
355
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  return apply_filters( 'user_registration_screen_ids', $screen_ids );
35
  }
36
+
37
  // Hook into exporter and eraser tool.
38
  add_filter( 'wp_privacy_personal_data_exporters', 'user_registration_register_data_exporter', 10 );
39
  add_filter( 'wp_privacy_personal_data_erasers', 'user_registration_register_data_eraser' );
44
  * @return array
45
  */
46
  function user_registration_register_data_exporter( $exporters ) {
47
+
48
  $exporters['user-registration'] = array(
49
  'exporter_friendly_name' => __( 'User Extra Information', 'user-registration' ),
50
  'callback' => 'user_registration_data_exporter',
60
  * @return array exporting data
61
  */
62
  function user_registration_data_exporter( $email_address, $page = 1 ) {
63
+
64
  global $wpdb;
65
+
66
  $form_data = array();
67
  $posts = get_posts( 'post_type=user_registration' );
68
+
69
  // Get array of field name label mapping of user registration fields.
70
  foreach( $posts as $post ) {
71
  $post_content = isset( $post->post_content ) ? $post->post_content : '';
74
  foreach ( $post_content_row as $post_content_grid ) {
75
  foreach ( $post_content_grid as $field ) {
76
  if( isset( $field->field_key ) && isset( $field->general_setting->field_name ) ) {
77
+ $form_data[ $field->general_setting->field_name ] = $field->general_setting->label;
78
  }
79
  }
80
  }
81
  }
82
+ }
83
+
84
  $user = get_user_by( 'email', $email_address );
85
  $user_id = isset( $user->ID ) ? $user->ID : 0;
86
  $usermeta = $wpdb->get_results( "SELECT * FROM $wpdb->usermeta WHERE meta_key LIKE 'user_registration\_%' AND user_id = ". $user_id ." ;" );
87
+
88
  $export_items = array();
89
  if( $usermeta && is_array( $usermeta )) {
90
 
97
  $meta->meta_value = unserialize( $meta->meta_value );
98
  $meta->meta_value = implode( ",", $meta->meta_value );
99
  }
100
+
101
+ $data[] =
102
  array( 'name' => $form_data[ $strip_prefix ],
103
  'value' => $meta->meta_value,
104
  );
105
  }
106
  }
107
+
108
  $export_items[] = array(
109
  'group_id' => 'user-registration',
110
  'group_label' => __( 'User Extra Information', 'user-registration' ),
111
  'item_id' => "user-registration-{$meta->umeta_id}",
112
  'data' => $data,
113
  );
114
+ }
115
 
116
  return array(
117
  'data' => $export_items,
139
  * @return array
140
  */
141
  function user_registration_data_eraser( $email_address, $page = 1 ) {
142
+
143
  global $wpdb;
144
+
145
  if ( empty( $email_address ) ) {
146
  return array(
147
  'items_removed' => false,
152
  }
153
 
154
  $user = get_user_by( 'email', $email_address );
155
+
156
  $messages = array();
157
  $items_removed = false;
158
  $items_retained = false;
160
  if ( $user && $user->ID ) {
161
  $user_id = $user->ID;
162
  $delete_usermeta = $wpdb->get_results( "DELETE FROM $wpdb->usermeta WHERE meta_key LIKE 'user_registration\_%' AND user_id = ". $user_id ." ;" );
163
+
164
  $delete_form_data = $wpdb->get_results( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'ur_form_id' AND user_id = ". $user_id ." ;");
165
 
166
+ if( $delete_usermeta && $delete_form_data ) {
167
  $items_removed = true;
168
  }
169
  }
308
  return UR_Admin_Settings::get_option( $option_name, $default );
309
  }
310
 
 
311
  /**
312
+ * General settings area display
313
+ * @param int $form_id Form ID.
314
  */
315
  function ur_admin_form_settings( $form_id = 0 ) {
316
 
326
 
327
 
328
  /**
329
+ * Update Settings of the form.
330
+ * @param array $setting_data Settings data in name value array pair
331
+ * @param int $form_id Form ID.
332
  */
333
  function ur_update_form_settings( $setting_data, $form_id ) {
334
  $remap_setting_data = array();
335
 
336
+ $setting_data = ur_format_setting_data( $setting_data );
337
  foreach ( $setting_data as $setting ) {
338
 
339
  if ( isset( $setting['name'] ) ) {
340
+
341
+ if( '[]' === substr( $setting['name'], -2 ) ) {
342
+ $setting['name'] = substr( $setting['name'], 0, -2 );
343
+ }
344
+
345
  $remap_setting_data[ $setting['name'] ] = $setting;
346
  }
347
  }
349
  $setting_fields = apply_filters( 'user_registration_form_settings_save', ur_admin_form_settings_fields( $form_id ), $form_id );
350
 
351
  foreach ( $setting_fields as $field_data ) {
 
352
  if ( isset( $field_data['id'] ) && isset( $remap_setting_data[ $field_data['id'] ] ) ) {
353
 
354
  if ( isset( $remap_setting_data[ $field_data['id'] ]['value'] ) ) {
355
+
356
+ // Check if any settings value contains array
357
+ if( is_array( $remap_setting_data[ $field_data['id'] ]['value'] ) ) {
358
+ $remap_setting_data[ $field_data['id'] ]['value'] = array_map( 'sanitize_text_field', $remap_setting_data[ $field_data['id'] ]['value'] );
359
+ $remap_setting_data[ $field_data['id'] ]['value'] = maybe_serialize( $remap_setting_data[ $field_data['id'] ]['value'] );
360
+ } else {
361
+ $remap_setting_data[ $field_data['id'] ]['value'] = sanitize_text_field( $remap_setting_data[ $field_data['id'] ]['value'] );
362
+ }
363
 
364
  update_post_meta( $form_id, $field_data['id'], $remap_setting_data[ $field_data['id'] ]['value'] );
365
  }
366
+ } else {
367
+ // Update post meta if any setting value is not set for field data id.
368
+ update_post_meta( $form_id, $field_data['id'], '' );
369
  }
370
  }
371
  }
372
+
373
+ /**
374
+ * Format settings data for same name. e.g. multiselect
375
+ * Encloses all values in array for same name in settings.
376
+ * @param array $setting_data unformatted settings data.
377
+ * @return array $settings formatted settings data.
378
+ */
379
+ function ur_format_setting_data( $setting_data ) {
380
+
381
+ $key_value = array();
382
+ foreach( $setting_data as $value ) {
383
+
384
+ if( array_key_exists( $value['name'], $key_value ) ) {
385
+ $value_array = array();
386
+
387
+ if( is_array( $key_value[ $value['name'] ] ) ) {
388
+
389
+ $value_array = $key_value[ $value['name'] ];
390
+ $value_array[] = $value['value'];
391
+ $key_value[ $value['name'] ] = $value_array;
392
+ }
393
+ else {
394
+ $value_array[] = $key_value[ $value['name'] ];
395
+ $value_array[] = $value['value'];
396
+ $key_value[ $value['name'] ] = $value_array;
397
+ }
398
+ }
399
+ else {
400
+ $key_value[ $value['name'] ] = $value['value'];
401
+ }
402
+ }
403
+
404
+ $settings = array();
405
+ foreach ( $key_value as $key => $value ) {
406
+ $settings[] = [
407
+ "name" => $key,
408
+ "value" => $value
409
+ ];
410
+ }
411
+
412
+ return $settings;
413
+ }
includes/admin/settings/class-ur-settings-general.php CHANGED
@@ -192,7 +192,7 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
192
  public function get_frontend_messages_settings() {
193
 
194
  $settings = apply_filters(
195
- 'user_registration_login_options_settings', array(
196
 
197
  array(
198
  'title' => __( 'Success Messages', 'user-registration' ),
@@ -372,7 +372,7 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
372
  'type' => 'checkbox',
373
  'desc_tip' => true,
374
  'css' => 'min-width: 350px;',
375
- 'default' => 'yes',
376
  ),
377
 
378
  array(
192
  public function get_frontend_messages_settings() {
193
 
194
  $settings = apply_filters(
195
+ 'user_registration_frontend_messages_settings', array(
196
 
197
  array(
198
  'title' => __( 'Success Messages', 'user-registration' ),
372
  'type' => 'checkbox',
373
  'desc_tip' => true,
374
  'css' => 'min-width: 350px;',
375
+ 'default' => 'no',
376
  ),
377
 
378
  array(
includes/class-ur-emailer.php CHANGED
@@ -57,6 +57,7 @@ class UR_Emailer {
57
 
58
 
59
  /**
 
60
  * @return string sender's email
61
  */
62
  public static function ur_sender_email() {
@@ -65,6 +66,7 @@ class UR_Emailer {
65
  }
66
 
67
  /**
 
68
  * @return string sender's name
69
  */
70
  public static function ur_sender_name() {
@@ -73,6 +75,7 @@ class UR_Emailer {
73
  }
74
 
75
  /**
 
76
  * @return string email header
77
  */
78
  public static function ur_get_header() {
@@ -84,9 +87,11 @@ class UR_Emailer {
84
  }
85
 
86
  /**
87
- * @param $valid_form_data
88
- * @param $form_id
89
- * @param $user_id
 
 
90
  */
91
  public static function ur_after_register_mail( $valid_form_data, $form_id, $user_id ) {
92
 
@@ -94,6 +99,7 @@ class UR_Emailer {
94
  $data_html = '';
95
  $valid_form_data = isset( $valid_form_data ) ? $valid_form_data : array();
96
 
 
97
  foreach( $valid_form_data as $field_meta => $form_data ) {
98
  if( $field_meta === 'user_confirm_password' ) {
99
  continue;
@@ -127,6 +133,7 @@ class UR_Emailer {
127
  $name_value[ $form_data->field_name ] = isset( $form_data->value ) ? $form_data->value : '';
128
  }
129
 
 
130
  $name_value = apply_filters( 'user_registration_process_smart_tag', $name_value, $form_data, $form_id, $user_id );
131
 
132
  $email_object = isset( $valid_form_data['user_email'] ) ? $valid_form_data['user_email'] : array();
@@ -135,7 +142,7 @@ class UR_Emailer {
135
  $username = isset( $user_login_object->value ) && ! empty( $user_login_object->value ) ? $user_login_object->value : '';
136
 
137
  if ( ! empty( $email ) && ! empty( $user_id ) ) {
138
-
139
  do_action( 'user_registration_email_send_before' );
140
 
141
  self::send_mail_to_user( $email, $username, $user_id, $data_html, $name_value, $attachments );
@@ -146,11 +153,12 @@ class UR_Emailer {
146
  }
147
 
148
  /**
149
- * @param string $email
150
- * @param string $username
151
- * @param int $user_id
152
- * @param string $data_html For all fields
153
- * @param array $name_value For smart tags
 
154
  * @return void
155
  */
156
  public static function send_mail_to_user( $email, $username, $user_id, $data_html, $name_value, $attachments ) {
@@ -224,11 +232,13 @@ class UR_Emailer {
224
  }
225
 
226
  /**
227
- * @param string $user_email
228
- * @param string $username
229
- * @param int $user_id
230
- * @param string $data_html
231
- * @param $name_value
 
 
232
  * @return void
233
  */
234
  public static function send_mail_to_admin( $user_email, $username, $user_id, $data_html, $name_value, $attachments ) {
@@ -268,9 +278,11 @@ class UR_Emailer {
268
  }
269
 
270
  /**
271
- * @param $email
272
- * @param $username
273
- * @param $status
 
 
274
  */
275
  public static function status_change_email( $email, $username, $status ) {
276
 
@@ -320,9 +332,11 @@ class UR_Emailer {
320
  }
321
 
322
  /**
323
- * @param $user_login
324
- * @param $user_data
325
- * @param $key
 
 
326
  */
327
  public static function lost_password_email( $user_login, $user_data, $key ) {
328
 
@@ -351,7 +365,6 @@ class UR_Emailer {
351
 
352
  return false;
353
  }
354
-
355
  }
356
 
357
- UR_Emailer::init();
57
 
58
 
59
  /**
60
+ * Sender's Email address
61
  * @return string sender's email
62
  */
63
  public static function ur_sender_email() {
66
  }
67
 
68
  /**
69
+ * Sender's name.
70
  * @return string sender's name
71
  */
72
  public static function ur_sender_name() {
75
  }
76
 
77
  /**
78
+ * Emails Headers.
79
  * @return string email header
80
  */
81
  public static function ur_get_header() {
87
  }
88
 
89
  /**
90
+ * Email sending process after registration hook.
91
+ * @param array $valid_form_data Form filled data.
92
+ * @param int $form_id Form ID.
93
+ * @param int $user_id User ID.
94
+ * @return void
95
  */
96
  public static function ur_after_register_mail( $valid_form_data, $form_id, $user_id ) {
97
 
99
  $data_html = '';
100
  $valid_form_data = isset( $valid_form_data ) ? $valid_form_data : array();
101
 
102
+ // Generate $data_html string to replace for {{all_fields}} smart tag.
103
  foreach( $valid_form_data as $field_meta => $form_data ) {
104
  if( $field_meta === 'user_confirm_password' ) {
105
  continue;
133
  $name_value[ $form_data->field_name ] = isset( $form_data->value ) ? $form_data->value : '';
134
  }
135
 
136
+ // Smart tag process for extra fields.
137
  $name_value = apply_filters( 'user_registration_process_smart_tag', $name_value, $form_data, $form_id, $user_id );
138
 
139
  $email_object = isset( $valid_form_data['user_email'] ) ? $valid_form_data['user_email'] : array();
142
  $username = isset( $user_login_object->value ) && ! empty( $user_login_object->value ) ? $user_login_object->value : '';
143
 
144
  if ( ! empty( $email ) && ! empty( $user_id ) ) {
145
+
146
  do_action( 'user_registration_email_send_before' );
147
 
148
  self::send_mail_to_user( $email, $username, $user_id, $data_html, $name_value, $attachments );
153
  }
154
 
155
  /**
156
+ * Trigger the user email.
157
+ * @param string $user_email Email of the user.
158
+ * @param string $username Username of the user.
159
+ * @param int $user_id User id.
160
+ * @param string $data_html String replaced with {{all_fields}} smart tag.
161
+ * @param array $name_value Array to replace with extra fields smart tag.
162
  * @return void
163
  */
164
  public static function send_mail_to_user( $email, $username, $user_id, $data_html, $name_value, $attachments ) {
232
  }
233
 
234
  /**
235
+ * Trigger the admin email.
236
+ * @param string $user_email Email of the user.
237
+ * @param string $username Username of the user.
238
+ * @param int $user_id User id.
239
+ * @param string $data_html String replaced with {{all_fields}} smart tag.
240
+ * @param array $name_value Array to replace with extra fields smart tag.
241
+ * @param array $attachments Email Attachement
242
  * @return void
243
  */
244
  public static function send_mail_to_admin( $user_email, $username, $user_id, $data_html, $name_value, $attachments ) {
278
  }
279
 
280
  /**
281
+ * Trigger status change email while admin changes users status on admin approval.
282
+ * @param string $email Email address of the user.
283
+ * @param string $username Username of the user.
284
+ * @param bool $status Stautus of the user.
285
+ * @return void
286
  */
287
  public static function status_change_email( $email, $username, $status ) {
288
 
332
  }
333
 
334
  /**
335
+ * Lost Password Email Trigger
336
+ * @param string $user_login username
337
+ * @param obj $user_data user object
338
+ * @param string $key password reset key
339
+ * @return bool
340
  */
341
  public static function lost_password_email( $user_login, $user_data, $key ) {
342
 
365
 
366
  return false;
367
  }
 
368
  }
369
 
370
+ UR_Emailer::init();
includes/class-ur-form-handler.php CHANGED
@@ -140,7 +140,7 @@ class UR_Form_Handler {
140
  $disabled = isset( $field['custom_attributes']['disabled'] ) ? $field['custom_attributes']['disabled'] : '';
141
 
142
  if( $disabled !== 'disabled' ){
143
- update_user_meta( $user_id, $update_key, $_POST[ $key ] );
144
  }
145
  }
146
  }
@@ -164,7 +164,7 @@ class UR_Form_Handler {
164
 
165
  /**
166
  * @deprecated 1.4.1
167
- * @param $user_id
168
  * @return void
169
  */
170
  public function save_account_details( $user_id ) {
@@ -265,7 +265,7 @@ class UR_Form_Handler {
265
  $validation_error = apply_filters( 'user_registration_process_login_errors', $validation_error, $_POST['username'], $_POST['password'] );
266
 
267
  if( 'yes' === $recaptcha_enabled && '' == $recaptcha_value ) {
268
- throw new Exception( '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . get_option( 'user_registration_form_submission_error_message_recaptcha', __( 'Captcha code error, please try again.' ), 'user-registration' ) );
269
  }
270
 
271
  if ( $validation_error->get_error_code() ) {
140
  $disabled = isset( $field['custom_attributes']['disabled'] ) ? $field['custom_attributes']['disabled'] : '';
141
 
142
  if( $disabled !== 'disabled' ){
143
+ update_user_meta( $user_id, $update_key, $_POST[ $key ] );
144
  }
145
  }
146
  }
164
 
165
  /**
166
  * @deprecated 1.4.1
167
+ * @param $user_id
168
  * @return void
169
  */
170
  public function save_account_details( $user_id ) {
265
  $validation_error = apply_filters( 'user_registration_process_login_errors', $validation_error, $_POST['username'], $_POST['password'] );
266
 
267
  if( 'yes' === $recaptcha_enabled && '' == $recaptcha_value ) {
268
+ throw new Exception( '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . get_option( 'user_registration_form_submission_error_message_recaptcha', __( 'Captcha code error, please try again.', 'user-registration' ) ) );
269
  }
270
 
271
  if ( $validation_error->get_error_code() ) {
includes/class-ur-frontend-scripts.php CHANGED
@@ -286,7 +286,7 @@ class UR_Frontend_Scripts {
286
  * @param string $handle
287
  */
288
  private static function localize_script( $handle ) {
289
-
290
  if ( ! in_array( $handle, self::$wp_localize_scripts ) && wp_script_is( $handle ) && ( $data = self::get_script_data( $handle ) ) ) {
291
  $name = str_replace( '-', '_', $handle ) . '_params';
292
  self::$wp_localize_scripts[] = $handle;
@@ -304,7 +304,7 @@ class UR_Frontend_Scripts {
304
  * @return array|bool
305
  */
306
  private static function get_script_data( $handle ) {
307
-
308
  switch ( $handle ) {
309
  case 'user-registration' :
310
  return array(
@@ -340,7 +340,7 @@ class UR_Frontend_Scripts {
340
  'mismatch' => __( 'Password with confirm password not matched.', 'user-registration' ),
341
 
342
  ),
343
- 'i18n_password_hint' => __( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols such as ! * ? $ % ^ & ).', 'user-registration' ),
344
  );
345
  break;
346
  }
286
  * @param string $handle
287
  */
288
  private static function localize_script( $handle ) {
289
+
290
  if ( ! in_array( $handle, self::$wp_localize_scripts ) && wp_script_is( $handle ) && ( $data = self::get_script_data( $handle ) ) ) {
291
  $name = str_replace( '-', '_', $handle ) . '_params';
292
  self::$wp_localize_scripts[] = $handle;
304
  * @return array|bool
305
  */
306
  private static function get_script_data( $handle ) {
307
+
308
  switch ( $handle ) {
309
  case 'user-registration' :
310
  return array(
340
  'mismatch' => __( 'Password with confirm password not matched.', 'user-registration' ),
341
 
342
  ),
343
+ 'i18n_password_hint' => apply_filters( 'user_registration_strong_password_message' , __( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols such as ! * ? $ % ^ & ).', 'user-registration' ) ),
344
  );
345
  break;
346
  }
includes/functions-ur-template.php CHANGED
@@ -102,12 +102,13 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
102
  $rules['logic_gate'] = isset( $args['logic_gate'] ) ? $args['logic_gate'] : '';
103
  $rules['rules'] = isset( $args['rules'] ) ? $args['rules'] : array();
104
  $rules['required'] = isset( $args['required'] ) ? $args['required'] : '';
105
-
106
  foreach( $rules['rules'] as $rules_key => $rule ) {
107
  if( empty( $rule['field'] ) ) {
108
  unset( $rules['rules'][ $rules_key ] );
109
  }
110
  }
 
111
  $rules['rules'] = array_values( $rules['rules'] );
112
 
113
  $rules = ( ! empty( $rules['rules'] ) && isset( $args['enable_conditional_logic'] ) ) ? wp_json_encode( $rules ) : "''";
@@ -272,6 +273,40 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
272
  }
273
  break;
274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  case 'radio' :
276
  $label_id = current( array_keys( $args['options'] ) );
277
  if ( ! empty( $args['options'] ) ) {
@@ -279,7 +314,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
279
 
280
  $field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_key ) . '" class="radio">';
281
 
282
- $field .= '<input data-rules=' . $rules . ' data-id="' . esc_attr( $key ) . '" type="radio" class="input-radio ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" value="' . esc_attr( trim ( $option_key ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_key ) . '" ' . implode( ' ', $custom_attributes ) . ' / ' . checked( $value, trim( $option_key ), false ) . ' />' . wp_kses( trim( $option_text ), array(
283
  'a' => array(
284
  'href' => array(),
285
  'title' => array()
@@ -511,4 +546,4 @@ function ur_logout_url( $redirect = '' ) {
511
  } else {
512
  return wp_logout_url( $redirect );
513
  }
514
- }
102
  $rules['logic_gate'] = isset( $args['logic_gate'] ) ? $args['logic_gate'] : '';
103
  $rules['rules'] = isset( $args['rules'] ) ? $args['rules'] : array();
104
  $rules['required'] = isset( $args['required'] ) ? $args['required'] : '';
105
+
106
  foreach( $rules['rules'] as $rules_key => $rule ) {
107
  if( empty( $rule['field'] ) ) {
108
  unset( $rules['rules'][ $rules_key ] );
109
  }
110
  }
111
+
112
  $rules['rules'] = array_values( $rules['rules'] );
113
 
114
  $rules = ( ! empty( $rules['rules'] ) && isset( $args['enable_conditional_logic'] ) ) ? wp_json_encode( $rules ) : "''";
273
  }
274
  break;
275
 
276
+ case 'multiselect' :
277
+ $options = $field .= '';
278
+
279
+ if( is_serialized( $value ) ) {
280
+ $default_value = unserialize( $value );
281
+ } else {
282
+ $default_value = $value;
283
+ }
284
+
285
+ if ( ! empty( $args['options'] ) ) {
286
+ foreach ( $args['options'] as $option_key => $option_text ) {
287
+
288
+ if ( '' === $option_key ) {
289
+ // If we have a blank option, select2 needs a placeholder
290
+ if ( empty( $args['placeholder'] ) ) {
291
+ $args['placeholder'] = $option_text ? $option_text : __( 'Choose an option', 'user-registration' );
292
+ }
293
+ $custom_attributes[] = 'data-allow_clear="true"';
294
+ }
295
+
296
+ if( is_array( $default_value ) ) {
297
+ $options .= '<option value="' . esc_attr( trim( $option_key ) ) . '" ' . selected( in_array( trim( $option_key ), $default_value ), true, false ) . '>' . esc_attr( trim( $option_text ) ) . '</option>';
298
+ }
299
+ else {
300
+ $options .= '<option value="' . esc_attr( trim( $option_key ) ) . '" ' . selected( $default_value, trim( $option_key ), false ) . '>' . esc_attr( trim( $option_text ) ) . '</option>';
301
+ }
302
+ }
303
+
304
+ $field .= '<select multiple data-rules=' . $rules . ' data-id="' . esc_attr( $key ) . '" name="' . esc_attr( $key ) . '[]" id="' . esc_attr( $args['id'] ) . '" class="select ur-enhanced-select' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" ' . implode( ' ', $custom_attributes ) . ' data-placeholder="' . esc_attr( $args['placeholder'] ) . '">
305
+ ' . $options . '
306
+ </select>';
307
+ }
308
+ break;
309
+
310
  case 'radio' :
311
  $label_id = current( array_keys( $args['options'] ) );
312
  if ( ! empty( $args['options'] ) ) {
314
 
315
  $field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_key ) . '" class="radio">';
316
 
317
+ $field .= '<input data-rules=' . $rules . ' data-id="' . esc_attr( $key ) . '" type="radio" class="input-radio ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" default_value="' . esc_attr( trim ( $option_key ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_key ) . '" ' . implode( ' ', $custom_attributes ) . ' / ' . checked( $value, trim( $option_key ), false ) . ' />' . wp_kses( trim( $option_text ), array(
318
  'a' => array(
319
  'href' => array(),
320
  'title' => array()
546
  } else {
547
  return wp_logout_url( $redirect );
548
  }
549
+ }
includes/shortcodes/class-ur-shortcode-login.php CHANGED
@@ -56,7 +56,7 @@ class UR_Shortcode_Login {
56
  }
57
  else
58
  {
59
- echo sprintf( __('You are already logged in. <a href="%s">Log out?</a>', 'user-registration' ), ur_logout_url() ) ;
60
  }
61
  }
62
  }
56
  }
57
  else
58
  {
59
+ echo apply_filters( 'user_registration_logged_in_message', sprintf( __( 'You are already logged in. <a href="%s">Log out?</a>', 'user-registration' ), ur_logout_url() ) );
60
  }
61
  }
62
  }
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.4.6\n"
6
  "Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
7
- "POT-Creation-Date: 2018-08-31 06:42:13+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -135,7 +135,7 @@ msgid "User Registration endpoints"
135
  msgstr ""
136
 
137
  #: includes/admin/class-ur-admin-menus.php:439
138
- #: includes/admin/settings/class-ur-settings-general.php:183
139
  #: includes/class-ur-query.php:79
140
  msgid "Lost password"
141
  msgstr ""
@@ -410,7 +410,7 @@ msgid "How the sender email appears in outgoing user registration emails."
410
  msgstr ""
411
 
412
  #: includes/admin/settings/class-ur-settings-email.php:149
413
- #: includes/admin/settings/class-ur-settings-general.php:273
414
  msgid "Email"
415
  msgstr ""
416
 
@@ -428,267 +428,331 @@ msgid "General"
428
  msgstr ""
429
 
430
  #: includes/admin/settings/class-ur-settings-general.php:44
431
- #: includes/admin/settings/class-ur-settings-general.php:68
432
  msgid "General Options"
433
  msgstr ""
434
 
435
  #: includes/admin/settings/class-ur-settings-general.php:45
 
 
 
 
 
436
  msgid "Frontend Messages"
437
  msgstr ""
438
 
439
- #: includes/admin/settings/class-ur-settings-general.php:74
440
  msgid "User login option"
441
  msgstr ""
442
 
443
- #: includes/admin/settings/class-ur-settings-general.php:75
444
  msgid "This option lets you choose login option after user registration."
445
  msgstr ""
446
 
447
- #: includes/admin/settings/class-ur-settings-general.php:85
448
  msgid "Redirect URL"
449
  msgstr ""
450
 
451
- #: includes/admin/settings/class-ur-settings-general.php:86
452
  msgid "This option lets you enter redirect path after successful user registration."
453
  msgstr ""
454
 
455
- #: includes/admin/settings/class-ur-settings-general.php:93
456
- msgid "Registration URL"
457
- msgstr ""
458
-
459
  #: includes/admin/settings/class-ur-settings-general.php:94
460
- msgid "This option lets you enter the registration page url in login form."
461
- msgstr ""
462
-
463
- #: includes/admin/settings/class-ur-settings-general.php:101
464
- msgid "Registration URL label"
465
- msgstr ""
466
-
467
- #: includes/admin/settings/class-ur-settings-general.php:102
468
- msgid "This option lets you enter the label to registration url in login form."
469
- msgstr ""
470
-
471
- #: includes/admin/settings/class-ur-settings-general.php:107
472
- #: templates/myaccount/form-login.php:71
473
- msgid "Not a member yet? Register now."
474
- msgstr ""
475
-
476
- #: includes/admin/settings/class-ur-settings-general.php:110
477
  msgid "Prevent dashboard access"
478
  msgstr ""
479
 
480
- #: includes/admin/settings/class-ur-settings-general.php:111
481
  msgid ""
482
  "This option lets you limit which roles you are willing to prevent dashboard "
483
  "access."
484
  msgstr ""
485
 
486
- #: includes/admin/settings/class-ur-settings-general.php:121
487
  msgid "My account page"
488
  msgstr ""
489
 
490
- #: includes/admin/settings/class-ur-settings-general.php:122
491
  msgid "Page contents: [%s]"
492
  msgstr ""
493
 
494
- #: includes/admin/settings/class-ur-settings-general.php:137
495
  msgid "My account Section"
496
  msgstr ""
497
 
498
- #: includes/admin/settings/class-ur-settings-general.php:142
499
  msgid "Layout"
500
  msgstr ""
501
 
502
- #: includes/admin/settings/class-ur-settings-general.php:143
503
  msgid "This option lets you choose layout for user registration my account tab."
504
  msgstr ""
505
 
506
- #: includes/admin/settings/class-ur-settings-general.php:151
507
  msgid "Horizontal"
508
  msgstr ""
509
 
510
- #: includes/admin/settings/class-ur-settings-general.php:152
511
  msgid "Vertical"
512
  msgstr ""
513
 
514
- #: includes/admin/settings/class-ur-settings-general.php:162
515
  msgid "Endpoints: "
516
  msgstr ""
517
 
518
- #: includes/admin/settings/class-ur-settings-general.php:162
519
  msgid ""
520
  "Endpoints are appended to your page URLs to handle specific actions on the "
521
  "accounts pages. They should be unique and can be left blank to disable the "
522
  "endpoint."
523
  msgstr ""
524
 
525
- #: includes/admin/settings/class-ur-settings-general.php:167
526
  msgid "Edit profile"
527
  msgstr ""
528
 
529
- #: includes/admin/settings/class-ur-settings-general.php:168
530
  msgid "Endpoint for the \"My account &rarr; Edit profile\" page."
531
  msgstr ""
532
 
533
- #: includes/admin/settings/class-ur-settings-general.php:175
534
  #: includes/class-ur-query.php:73 includes/functions-ur-account.php:85
535
  msgid "Change Password"
536
  msgstr ""
537
 
538
- #: includes/admin/settings/class-ur-settings-general.php:176
539
  msgid "Endpoint for the \"My account &rarr; Change Password\" page."
540
  msgstr ""
541
 
542
- #: includes/admin/settings/class-ur-settings-general.php:184
543
  msgid "Endpoint for the \"My account &rarr; Lost password\" page."
544
  msgstr ""
545
 
546
- #: includes/admin/settings/class-ur-settings-general.php:191
547
  msgid "User logout"
548
  msgstr ""
549
 
550
- #: includes/admin/settings/class-ur-settings-general.php:192
551
  msgid ""
552
  "Endpoint for the triggering logout. You can add this to your menus via a "
553
  "custom link: yoursite.com/?user-logout=true"
554
  msgstr ""
555
 
556
- #: includes/admin/settings/class-ur-settings-general.php:214
557
  msgid "Success Messages"
558
  msgstr ""
559
 
560
- #: includes/admin/settings/class-ur-settings-general.php:221
561
  #: includes/functions-ur-core.php:775
562
  msgid "Manual login after registration"
563
  msgstr ""
564
 
565
- #: includes/admin/settings/class-ur-settings-general.php:222
566
  msgid ""
567
  "Enter the text message after successful form submission on manual login "
568
  "after registration."
569
  msgstr ""
570
 
571
- #: includes/admin/settings/class-ur-settings-general.php:227
572
  #: includes/class-ur-frontend-scripts.php:322
573
  msgid "User successfully registered."
574
  msgstr ""
575
 
576
- #: includes/admin/settings/class-ur-settings-general.php:231
577
  #: includes/functions-ur-core.php:776
578
  msgid "Email confirmation to login"
579
  msgstr ""
580
 
581
- #: includes/admin/settings/class-ur-settings-general.php:232
582
  msgid ""
583
  "Enter the text message after successful form submission on email "
584
  "confirmation to login."
585
  msgstr ""
586
 
587
- #: includes/admin/settings/class-ur-settings-general.php:237
588
  #: includes/class-ur-frontend-scripts.php:324
589
  msgid ""
590
  "User registered. Verify your email by clicking on the link sent to your "
591
  "email."
592
  msgstr ""
593
 
594
- #: includes/admin/settings/class-ur-settings-general.php:241
595
  #: includes/functions-ur-core.php:778
596
  msgid "Admin approval after registration"
597
  msgstr ""
598
 
599
- #: includes/admin/settings/class-ur-settings-general.php:242
600
  msgid ""
601
  "Enter the text message after successful form submission on admin approval "
602
  "after registration."
603
  msgstr ""
604
 
605
- #: includes/admin/settings/class-ur-settings-general.php:247
606
  #: includes/class-ur-frontend-scripts.php:323
607
  msgid "User registered. Wait until admin approves your registration."
608
  msgstr ""
609
 
610
- #: includes/admin/settings/class-ur-settings-general.php:256
611
  msgid "Error Messages"
612
  msgstr ""
613
 
614
- #: includes/admin/settings/class-ur-settings-general.php:263
615
  #: includes/functions-ur-core.php:564
616
  msgid "Required"
617
  msgstr ""
618
 
619
- #: includes/admin/settings/class-ur-settings-general.php:264
620
  msgid "Enter the error message in form submission on required fields."
621
  msgstr ""
622
 
623
- #: includes/admin/settings/class-ur-settings-general.php:269
624
  #: includes/class-ur-frontend-scripts.php:316
625
  msgid "This field is required."
626
  msgstr ""
627
 
628
- #: includes/admin/settings/class-ur-settings-general.php:274
629
  msgid "Enter the error message in form submission on Email."
630
  msgstr ""
631
 
632
- #: includes/admin/settings/class-ur-settings-general.php:279
633
  #: includes/class-ur-frontend-scripts.php:317
634
  msgid "Please enter a valid email address."
635
  msgstr ""
636
 
637
- #: includes/admin/settings/class-ur-settings-general.php:283
638
  msgid "Website URL"
639
  msgstr ""
640
 
641
- #: includes/admin/settings/class-ur-settings-general.php:284
642
  msgid "Enter the error message in form submission on website/URL."
643
  msgstr ""
644
 
645
- #: includes/admin/settings/class-ur-settings-general.php:289
646
  #: includes/class-ur-frontend-scripts.php:318
647
  msgid "Please enter a valid URL."
648
  msgstr ""
649
 
650
- #: includes/admin/settings/class-ur-settings-general.php:293
651
  #: includes/form/class-ur-form-field-number.php:37
652
  #: includes/form/class-ur-form-field-number.php:42
653
  msgid "Number"
654
  msgstr ""
655
 
656
- #: includes/admin/settings/class-ur-settings-general.php:294
657
  msgid "Enter the error message in form submission on Number."
658
  msgstr ""
659
 
660
- #: includes/admin/settings/class-ur-settings-general.php:299
661
  #: includes/class-ur-frontend-scripts.php:319
662
  msgid "Please enter a valid number."
663
  msgstr ""
664
 
665
- #: includes/admin/settings/class-ur-settings-general.php:303
666
  #: includes/form/class-ur-form-field-user-confirm-password.php:40
667
  msgid "Confirm Password"
668
  msgstr ""
669
 
670
- #: includes/admin/settings/class-ur-settings-general.php:304
671
  msgid "Enter the error message in form submission on Confim Password."
672
  msgstr ""
673
 
674
- #: includes/admin/settings/class-ur-settings-general.php:309
675
  #: includes/class-ur-frontend-scripts.php:320
676
  msgid "Password and confirm password not matched."
677
  msgstr ""
678
 
679
- #: includes/admin/settings/class-ur-settings-general.php:313
680
  msgid "Google reCaptcha"
681
  msgstr ""
682
 
683
- #: includes/admin/settings/class-ur-settings-general.php:314
684
  msgid "Enter the error message in form submission on google recaptcha."
685
  msgstr ""
686
 
687
- #: includes/admin/settings/class-ur-settings-general.php:319
 
688
  #: includes/class-ur-frontend-scripts.php:325
689
  msgid "Captcha code error, please try again."
690
  msgstr ""
691
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
692
  #: includes/admin/settings/class-ur-settings-integration.php:29
693
  msgid "Integration"
694
  msgstr ""
@@ -778,7 +842,7 @@ msgid "The email subject you want to customize."
778
  msgstr ""
779
 
780
  #: includes/admin/settings/emails/class-ur-settings-admin-email.php:68
781
- #: includes/class-ur-emailer.php:242
782
  msgid "A New User Registered"
783
  msgstr ""
784
 
@@ -836,7 +900,7 @@ msgid ""
836
  msgstr ""
837
 
838
  #: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:59
839
- #: includes/class-ur-emailer.php:185
840
  msgid "Thank you for registration on {{blog_info}}"
841
  msgstr ""
842
 
@@ -865,7 +929,7 @@ msgid ""
865
  msgstr ""
866
 
867
  #: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:51
868
- #: includes/class-ur-emailer.php:173
869
  msgid "Please confirm your registration on {{blog_info}}"
870
  msgstr ""
871
 
@@ -899,7 +963,7 @@ msgid "Enable this email sent to admin after successfull user registration."
899
  msgstr ""
900
 
901
  #: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:59
902
- #: includes/class-ur-emailer.php:307
903
  msgid "Congratulations! Registration approved on {{blog_info}}"
904
  msgstr ""
905
 
@@ -927,7 +991,7 @@ msgid "Email sent to the user notifying the registration is denied by the admin"
927
  msgstr ""
928
 
929
  #: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:59
930
- #: includes/class-ur-emailer.php:199 includes/class-ur-emailer.php:294
931
  msgid "Sorry! Registration denied on {{blog_info}}"
932
  msgstr ""
933
 
@@ -954,7 +1018,7 @@ msgid "Email sent to the user notifying the registration is pending"
954
  msgstr ""
955
 
956
  #: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:59
957
- #: includes/class-ur-emailer.php:281
958
  msgid "Sorry! Registration changed to pending on {{blog_info}}"
959
  msgstr ""
960
 
@@ -986,7 +1050,7 @@ msgid "Enable this email sent to the user when a user requests for reset passwor
986
  msgstr ""
987
 
988
  #: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:57
989
- #: includes/class-ur-emailer.php:336
990
  msgid "Password Reset Email: {{blog_info}}"
991
  msgstr ""
992
 
@@ -1020,7 +1084,7 @@ msgid "Enable this email sent after successful user registration."
1020
  msgstr ""
1021
 
1022
  #: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:59
1023
- #: includes/class-ur-emailer.php:211
1024
  msgid "Congratulations! Registration Complete on {{blog_info}}"
1025
  msgstr ""
1026
 
@@ -1265,9 +1329,10 @@ msgid "User doesnot exist!"
1265
  msgstr ""
1266
 
1267
  #: includes/class-ur-email-confirmation.php:299
1268
- #: includes/class-ur-form-handler.php:265
1269
- #: includes/class-ur-form-handler.php:269
1270
- #: includes/class-ur-form-handler.php:278
 
1271
  #: includes/class-ur-user-approval.php:179
1272
  #: includes/class-ur-user-approval.php:184
1273
  msgid "ERROR:"
@@ -1289,7 +1354,7 @@ msgid ""
1289
  "email."
1290
  msgstr ""
1291
 
1292
- #: includes/class-ur-emailer.php:110
1293
  msgid "Chosen Password"
1294
  msgstr ""
1295
 
@@ -1329,19 +1394,19 @@ msgstr ""
1329
  msgid "Password changed successfully."
1330
  msgstr ""
1331
 
1332
- #: includes/class-ur-form-handler.php:269
1333
  msgid "Username is required."
1334
  msgstr ""
1335
 
1336
- #: includes/class-ur-form-handler.php:278
1337
  msgid "A user could not be found with this email address."
1338
  msgstr ""
1339
 
1340
- #: includes/class-ur-form-handler.php:368
1341
  msgid "Please enter your password."
1342
  msgstr ""
1343
 
1344
- #: includes/class-ur-form-handler.php:372
1345
  msgid "Passwords do not match."
1346
  msgstr ""
1347
 
@@ -2791,34 +2856,10 @@ msgstr ""
2791
  msgid "Form submit button label"
2792
  msgstr ""
2793
 
2794
- #: includes/functions-ur-core.php:718
2795
- msgid "Enable %1$s %2$s reCaptcha %3$s support"
2796
- msgstr ""
2797
-
2798
  #: includes/functions-ur-core.php:733
2799
  msgid "Template"
2800
  msgstr ""
2801
 
2802
- #: includes/functions-ur-core.php:740
2803
- msgid "Default"
2804
- msgstr ""
2805
-
2806
- #: includes/functions-ur-core.php:741
2807
- msgid "Bordered"
2808
- msgstr ""
2809
-
2810
- #: includes/functions-ur-core.php:742
2811
- msgid "Flat"
2812
- msgstr ""
2813
-
2814
- #: includes/functions-ur-core.php:743
2815
- msgid "Rounded"
2816
- msgstr ""
2817
-
2818
- #: includes/functions-ur-core.php:744
2819
- msgid "Rounded Edge"
2820
- msgstr ""
2821
-
2822
  #: includes/functions-ur-core.php:751
2823
  msgid "Custom CSS class"
2824
  msgstr ""
@@ -2833,11 +2874,11 @@ msgid ""
2833
  "filter must implement <code>UR_Logger_Interface</code>."
2834
  msgstr ""
2835
 
2836
- #: includes/functions-ur-core.php:1046
2837
  msgid "Disable emails"
2838
  msgstr ""
2839
 
2840
- #: includes/functions-ur-core.php:1047
2841
  msgid "Disable all emails sent after registration."
2842
  msgstr ""
2843
 
@@ -2848,11 +2889,12 @@ msgstr ""
2848
  msgid "This function should not be called before user_registration_init."
2849
  msgstr ""
2850
 
2851
- #: includes/functions-ur-template.php:141
2852
  msgid "required"
2853
  msgstr ""
2854
 
2855
- #: includes/functions-ur-template.php:262
 
2856
  msgid "Choose an option"
2857
  msgstr ""
2858
 
@@ -2864,32 +2906,32 @@ msgstr ""
2864
  msgid "This method should not be called before plugins_loaded."
2865
  msgstr ""
2866
 
2867
- #: includes/shortcodes/class-ur-shortcode-login.php:53
2868
  msgid "You are already logged in. <a href=\"%s\">Log out?</a>"
2869
  msgstr ""
2870
 
2871
- #: includes/shortcodes/class-ur-shortcode-my-account.php:55
2872
  msgid "Your password has been reset successfully."
2873
  msgstr ""
2874
 
2875
- #: includes/shortcodes/class-ur-shortcode-my-account.php:68
2876
  msgid "Are you sure you want to log out? <a href=\"%s\">Confirm and log out</a>"
2877
  msgstr ""
2878
 
2879
- #: includes/shortcodes/class-ur-shortcode-my-account.php:198
2880
  msgid "Enter a username or email address."
2881
  msgstr ""
2882
 
2883
- #: includes/shortcodes/class-ur-shortcode-my-account.php:219
2884
  #: includes/shortcodes/class-ur-shortcode-my-account.php:224
 
2885
  msgid "Invalid username or email."
2886
  msgstr ""
2887
 
2888
- #: includes/shortcodes/class-ur-shortcode-my-account.php:234
2889
  msgid "Password reset is not allowed for this user"
2890
  msgstr ""
2891
 
2892
- #: includes/shortcodes/class-ur-shortcode-my-account.php:247
2893
  msgid "The email could not be sent. Contact your site administrator. "
2894
  msgstr ""
2895
 
@@ -2931,23 +2973,23 @@ msgstr ""
2931
  msgid "Gravatar"
2932
  msgstr ""
2933
 
2934
- #: templates/myaccount/form-login.php:38
2935
  msgid "Username or email address"
2936
  msgstr ""
2937
 
2938
- #: templates/myaccount/form-login.php:42
2939
  msgid "Password"
2940
  msgstr ""
2941
 
2942
- #: templates/myaccount/form-login.php:50
2943
  msgid "Login"
2944
  msgstr ""
2945
 
2946
- #: templates/myaccount/form-login.php:53
2947
  msgid "Remember me"
2948
  msgstr ""
2949
 
2950
- #: templates/myaccount/form-login.php:57
2951
  msgid "Lost your password?"
2952
  msgstr ""
2953
 
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.4.7\n"
6
  "Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
7
+ "POT-Creation-Date: 2018-10-08 07:13:42+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
135
  msgstr ""
136
 
137
  #: includes/admin/class-ur-admin-menus.php:439
138
+ #: includes/admin/settings/class-ur-settings-general.php:167
139
  #: includes/class-ur-query.php:79
140
  msgid "Lost password"
141
  msgstr ""
410
  msgstr ""
411
 
412
  #: includes/admin/settings/class-ur-settings-email.php:149
413
+ #: includes/admin/settings/class-ur-settings-general.php:257
414
  msgid "Email"
415
  msgstr ""
416
 
428
  msgstr ""
429
 
430
  #: includes/admin/settings/class-ur-settings-general.php:44
431
+ #: includes/admin/settings/class-ur-settings-general.php:69
432
  msgid "General Options"
433
  msgstr ""
434
 
435
  #: includes/admin/settings/class-ur-settings-general.php:45
436
+ #: includes/admin/settings/class-ur-settings-general.php:325
437
+ msgid "Login Options"
438
+ msgstr ""
439
+
440
+ #: includes/admin/settings/class-ur-settings-general.php:46
441
  msgid "Frontend Messages"
442
  msgstr ""
443
 
444
+ #: includes/admin/settings/class-ur-settings-general.php:75
445
  msgid "User login option"
446
  msgstr ""
447
 
448
+ #: includes/admin/settings/class-ur-settings-general.php:76
449
  msgid "This option lets you choose login option after user registration."
450
  msgstr ""
451
 
452
+ #: includes/admin/settings/class-ur-settings-general.php:86
453
  msgid "Redirect URL"
454
  msgstr ""
455
 
456
+ #: includes/admin/settings/class-ur-settings-general.php:87
457
  msgid "This option lets you enter redirect path after successful user registration."
458
  msgstr ""
459
 
 
 
 
 
460
  #: includes/admin/settings/class-ur-settings-general.php:94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
  msgid "Prevent dashboard access"
462
  msgstr ""
463
 
464
+ #: includes/admin/settings/class-ur-settings-general.php:95
465
  msgid ""
466
  "This option lets you limit which roles you are willing to prevent dashboard "
467
  "access."
468
  msgstr ""
469
 
470
+ #: includes/admin/settings/class-ur-settings-general.php:105
471
  msgid "My account page"
472
  msgstr ""
473
 
474
+ #: includes/admin/settings/class-ur-settings-general.php:106
475
  msgid "Page contents: [%s]"
476
  msgstr ""
477
 
478
+ #: includes/admin/settings/class-ur-settings-general.php:121
479
  msgid "My account Section"
480
  msgstr ""
481
 
482
+ #: includes/admin/settings/class-ur-settings-general.php:126
483
  msgid "Layout"
484
  msgstr ""
485
 
486
+ #: includes/admin/settings/class-ur-settings-general.php:127
487
  msgid "This option lets you choose layout for user registration my account tab."
488
  msgstr ""
489
 
490
+ #: includes/admin/settings/class-ur-settings-general.php:135
491
  msgid "Horizontal"
492
  msgstr ""
493
 
494
+ #: includes/admin/settings/class-ur-settings-general.php:136
495
  msgid "Vertical"
496
  msgstr ""
497
 
498
+ #: includes/admin/settings/class-ur-settings-general.php:146
499
  msgid "Endpoints: "
500
  msgstr ""
501
 
502
+ #: includes/admin/settings/class-ur-settings-general.php:146
503
  msgid ""
504
  "Endpoints are appended to your page URLs to handle specific actions on the "
505
  "accounts pages. They should be unique and can be left blank to disable the "
506
  "endpoint."
507
  msgstr ""
508
 
509
+ #: includes/admin/settings/class-ur-settings-general.php:151
510
  msgid "Edit profile"
511
  msgstr ""
512
 
513
+ #: includes/admin/settings/class-ur-settings-general.php:152
514
  msgid "Endpoint for the \"My account &rarr; Edit profile\" page."
515
  msgstr ""
516
 
517
+ #: includes/admin/settings/class-ur-settings-general.php:159
518
  #: includes/class-ur-query.php:73 includes/functions-ur-account.php:85
519
  msgid "Change Password"
520
  msgstr ""
521
 
522
+ #: includes/admin/settings/class-ur-settings-general.php:160
523
  msgid "Endpoint for the \"My account &rarr; Change Password\" page."
524
  msgstr ""
525
 
526
+ #: includes/admin/settings/class-ur-settings-general.php:168
527
  msgid "Endpoint for the \"My account &rarr; Lost password\" page."
528
  msgstr ""
529
 
530
+ #: includes/admin/settings/class-ur-settings-general.php:175
531
  msgid "User logout"
532
  msgstr ""
533
 
534
+ #: includes/admin/settings/class-ur-settings-general.php:176
535
  msgid ""
536
  "Endpoint for the triggering logout. You can add this to your menus via a "
537
  "custom link: yoursite.com/?user-logout=true"
538
  msgstr ""
539
 
540
+ #: includes/admin/settings/class-ur-settings-general.php:198
541
  msgid "Success Messages"
542
  msgstr ""
543
 
544
+ #: includes/admin/settings/class-ur-settings-general.php:205
545
  #: includes/functions-ur-core.php:775
546
  msgid "Manual login after registration"
547
  msgstr ""
548
 
549
+ #: includes/admin/settings/class-ur-settings-general.php:206
550
  msgid ""
551
  "Enter the text message after successful form submission on manual login "
552
  "after registration."
553
  msgstr ""
554
 
555
+ #: includes/admin/settings/class-ur-settings-general.php:211
556
  #: includes/class-ur-frontend-scripts.php:322
557
  msgid "User successfully registered."
558
  msgstr ""
559
 
560
+ #: includes/admin/settings/class-ur-settings-general.php:215
561
  #: includes/functions-ur-core.php:776
562
  msgid "Email confirmation to login"
563
  msgstr ""
564
 
565
+ #: includes/admin/settings/class-ur-settings-general.php:216
566
  msgid ""
567
  "Enter the text message after successful form submission on email "
568
  "confirmation to login."
569
  msgstr ""
570
 
571
+ #: includes/admin/settings/class-ur-settings-general.php:221
572
  #: includes/class-ur-frontend-scripts.php:324
573
  msgid ""
574
  "User registered. Verify your email by clicking on the link sent to your "
575
  "email."
576
  msgstr ""
577
 
578
+ #: includes/admin/settings/class-ur-settings-general.php:225
579
  #: includes/functions-ur-core.php:778
580
  msgid "Admin approval after registration"
581
  msgstr ""
582
 
583
+ #: includes/admin/settings/class-ur-settings-general.php:226
584
  msgid ""
585
  "Enter the text message after successful form submission on admin approval "
586
  "after registration."
587
  msgstr ""
588
 
589
+ #: includes/admin/settings/class-ur-settings-general.php:231
590
  #: includes/class-ur-frontend-scripts.php:323
591
  msgid "User registered. Wait until admin approves your registration."
592
  msgstr ""
593
 
594
+ #: includes/admin/settings/class-ur-settings-general.php:240
595
  msgid "Error Messages"
596
  msgstr ""
597
 
598
+ #: includes/admin/settings/class-ur-settings-general.php:247
599
  #: includes/functions-ur-core.php:564
600
  msgid "Required"
601
  msgstr ""
602
 
603
+ #: includes/admin/settings/class-ur-settings-general.php:248
604
  msgid "Enter the error message in form submission on required fields."
605
  msgstr ""
606
 
607
+ #: includes/admin/settings/class-ur-settings-general.php:253
608
  #: includes/class-ur-frontend-scripts.php:316
609
  msgid "This field is required."
610
  msgstr ""
611
 
612
+ #: includes/admin/settings/class-ur-settings-general.php:258
613
  msgid "Enter the error message in form submission on Email."
614
  msgstr ""
615
 
616
+ #: includes/admin/settings/class-ur-settings-general.php:263
617
  #: includes/class-ur-frontend-scripts.php:317
618
  msgid "Please enter a valid email address."
619
  msgstr ""
620
 
621
+ #: includes/admin/settings/class-ur-settings-general.php:267
622
  msgid "Website URL"
623
  msgstr ""
624
 
625
+ #: includes/admin/settings/class-ur-settings-general.php:268
626
  msgid "Enter the error message in form submission on website/URL."
627
  msgstr ""
628
 
629
+ #: includes/admin/settings/class-ur-settings-general.php:273
630
  #: includes/class-ur-frontend-scripts.php:318
631
  msgid "Please enter a valid URL."
632
  msgstr ""
633
 
634
+ #: includes/admin/settings/class-ur-settings-general.php:277
635
  #: includes/form/class-ur-form-field-number.php:37
636
  #: includes/form/class-ur-form-field-number.php:42
637
  msgid "Number"
638
  msgstr ""
639
 
640
+ #: includes/admin/settings/class-ur-settings-general.php:278
641
  msgid "Enter the error message in form submission on Number."
642
  msgstr ""
643
 
644
+ #: includes/admin/settings/class-ur-settings-general.php:283
645
  #: includes/class-ur-frontend-scripts.php:319
646
  msgid "Please enter a valid number."
647
  msgstr ""
648
 
649
+ #: includes/admin/settings/class-ur-settings-general.php:287
650
  #: includes/form/class-ur-form-field-user-confirm-password.php:40
651
  msgid "Confirm Password"
652
  msgstr ""
653
 
654
+ #: includes/admin/settings/class-ur-settings-general.php:288
655
  msgid "Enter the error message in form submission on Confim Password."
656
  msgstr ""
657
 
658
+ #: includes/admin/settings/class-ur-settings-general.php:293
659
  #: includes/class-ur-frontend-scripts.php:320
660
  msgid "Password and confirm password not matched."
661
  msgstr ""
662
 
663
+ #: includes/admin/settings/class-ur-settings-general.php:297
664
  msgid "Google reCaptcha"
665
  msgstr ""
666
 
667
+ #: includes/admin/settings/class-ur-settings-general.php:298
668
  msgid "Enter the error message in form submission on google recaptcha."
669
  msgstr ""
670
 
671
+ #: includes/admin/settings/class-ur-settings-general.php:303
672
+ #: includes/class-ur-form-handler.php:268
673
  #: includes/class-ur-frontend-scripts.php:325
674
  msgid "Captcha code error, please try again."
675
  msgstr ""
676
 
677
+ #: includes/admin/settings/class-ur-settings-general.php:332
678
+ msgid "Form Template"
679
+ msgstr ""
680
+
681
+ #: includes/admin/settings/class-ur-settings-general.php:333
682
+ msgid "Choose the login form template."
683
+ msgstr ""
684
+
685
+ #: includes/admin/settings/class-ur-settings-general.php:340
686
+ #: includes/functions-ur-core.php:740
687
+ msgid "Default"
688
+ msgstr ""
689
+
690
+ #: includes/admin/settings/class-ur-settings-general.php:341
691
+ #: includes/functions-ur-core.php:741
692
+ msgid "Bordered"
693
+ msgstr ""
694
+
695
+ #: includes/admin/settings/class-ur-settings-general.php:342
696
+ #: includes/functions-ur-core.php:742
697
+ msgid "Flat"
698
+ msgstr ""
699
+
700
+ #: includes/admin/settings/class-ur-settings-general.php:343
701
+ #: includes/functions-ur-core.php:743
702
+ msgid "Rounded"
703
+ msgstr ""
704
+
705
+ #: includes/admin/settings/class-ur-settings-general.php:344
706
+ #: includes/functions-ur-core.php:744
707
+ msgid "Rounded Edge"
708
+ msgstr ""
709
+
710
+ #: includes/admin/settings/class-ur-settings-general.php:349
711
+ msgid "Enable remember me"
712
+ msgstr ""
713
+
714
+ #: includes/admin/settings/class-ur-settings-general.php:350
715
+ msgid "Check to enable/disable remember me."
716
+ msgstr ""
717
+
718
+ #: includes/admin/settings/class-ur-settings-general.php:359
719
+ msgid "Enable lost password"
720
+ msgstr ""
721
+
722
+ #: includes/admin/settings/class-ur-settings-general.php:360
723
+ msgid "Check to enable/disable lost password."
724
+ msgstr ""
725
+
726
+ #: includes/admin/settings/class-ur-settings-general.php:369
727
+ msgid "Enable google reCaptcha"
728
+ msgstr ""
729
+
730
+ #: includes/admin/settings/class-ur-settings-general.php:370
731
+ #: includes/functions-ur-core.php:718
732
+ msgid "Enable %1$s %2$s reCaptcha %3$s support"
733
+ msgstr ""
734
+
735
+ #: includes/admin/settings/class-ur-settings-general.php:379
736
+ msgid "Registration URL"
737
+ msgstr ""
738
+
739
+ #: includes/admin/settings/class-ur-settings-general.php:380
740
+ msgid "This option lets you enter the registration page url in login form."
741
+ msgstr ""
742
+
743
+ #: includes/admin/settings/class-ur-settings-general.php:388
744
+ msgid "Registration URL label"
745
+ msgstr ""
746
+
747
+ #: includes/admin/settings/class-ur-settings-general.php:389
748
+ msgid "This option lets you enter the label to registration url in login form."
749
+ msgstr ""
750
+
751
+ #: includes/admin/settings/class-ur-settings-general.php:394
752
+ #: templates/myaccount/form-login.php:112
753
+ msgid "Not a member yet? Register now."
754
+ msgstr ""
755
+
756
  #: includes/admin/settings/class-ur-settings-integration.php:29
757
  msgid "Integration"
758
  msgstr ""
842
  msgstr ""
843
 
844
  #: includes/admin/settings/emails/class-ur-settings-admin-email.php:68
845
+ #: includes/class-ur-emailer.php:254
846
  msgid "A New User Registered"
847
  msgstr ""
848
 
900
  msgstr ""
901
 
902
  #: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:59
903
+ #: includes/class-ur-emailer.php:195
904
  msgid "Thank you for registration on {{blog_info}}"
905
  msgstr ""
906
 
929
  msgstr ""
930
 
931
  #: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:51
932
+ #: includes/class-ur-emailer.php:183
933
  msgid "Please confirm your registration on {{blog_info}}"
934
  msgstr ""
935
 
963
  msgstr ""
964
 
965
  #: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:59
966
+ #: includes/class-ur-emailer.php:321
967
  msgid "Congratulations! Registration approved on {{blog_info}}"
968
  msgstr ""
969
 
991
  msgstr ""
992
 
993
  #: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:59
994
+ #: includes/class-ur-emailer.php:209 includes/class-ur-emailer.php:308
995
  msgid "Sorry! Registration denied on {{blog_info}}"
996
  msgstr ""
997
 
1018
  msgstr ""
1019
 
1020
  #: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:59
1021
+ #: includes/class-ur-emailer.php:295
1022
  msgid "Sorry! Registration changed to pending on {{blog_info}}"
1023
  msgstr ""
1024
 
1050
  msgstr ""
1051
 
1052
  #: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:57
1053
+ #: includes/class-ur-emailer.php:352
1054
  msgid "Password Reset Email: {{blog_info}}"
1055
  msgstr ""
1056
 
1084
  msgstr ""
1085
 
1086
  #: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:59
1087
+ #: includes/class-ur-emailer.php:221
1088
  msgid "Congratulations! Registration Complete on {{blog_info}}"
1089
  msgstr ""
1090
 
1329
  msgstr ""
1330
 
1331
  #: includes/class-ur-email-confirmation.php:299
1332
+ #: includes/class-ur-form-handler.php:268
1333
+ #: includes/class-ur-form-handler.php:272
1334
+ #: includes/class-ur-form-handler.php:276
1335
+ #: includes/class-ur-form-handler.php:285
1336
  #: includes/class-ur-user-approval.php:179
1337
  #: includes/class-ur-user-approval.php:184
1338
  msgid "ERROR:"
1354
  "email."
1355
  msgstr ""
1356
 
1357
+ #: includes/class-ur-emailer.php:116
1358
  msgid "Chosen Password"
1359
  msgstr ""
1360
 
1394
  msgid "Password changed successfully."
1395
  msgstr ""
1396
 
1397
+ #: includes/class-ur-form-handler.php:276
1398
  msgid "Username is required."
1399
  msgstr ""
1400
 
1401
+ #: includes/class-ur-form-handler.php:285
1402
  msgid "A user could not be found with this email address."
1403
  msgstr ""
1404
 
1405
+ #: includes/class-ur-form-handler.php:375
1406
  msgid "Please enter your password."
1407
  msgstr ""
1408
 
1409
+ #: includes/class-ur-form-handler.php:379
1410
  msgid "Passwords do not match."
1411
  msgstr ""
1412
 
2856
  msgid "Form submit button label"
2857
  msgstr ""
2858
 
 
 
 
 
2859
  #: includes/functions-ur-core.php:733
2860
  msgid "Template"
2861
  msgstr ""
2862
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2863
  #: includes/functions-ur-core.php:751
2864
  msgid "Custom CSS class"
2865
  msgstr ""
2874
  "filter must implement <code>UR_Logger_Interface</code>."
2875
  msgstr ""
2876
 
2877
+ #: includes/functions-ur-core.php:1047
2878
  msgid "Disable emails"
2879
  msgstr ""
2880
 
2881
+ #: includes/functions-ur-core.php:1048
2882
  msgid "Disable all emails sent after registration."
2883
  msgstr ""
2884
 
2889
  msgid "This function should not be called before user_registration_init."
2890
  msgstr ""
2891
 
2892
+ #: includes/functions-ur-template.php:142
2893
  msgid "required"
2894
  msgstr ""
2895
 
2896
+ #: includes/functions-ur-template.php:263
2897
+ #: includes/functions-ur-template.php:291
2898
  msgid "Choose an option"
2899
  msgstr ""
2900
 
2906
  msgid "This method should not be called before plugins_loaded."
2907
  msgstr ""
2908
 
2909
+ #: includes/shortcodes/class-ur-shortcode-login.php:59
2910
  msgid "You are already logged in. <a href=\"%s\">Log out?</a>"
2911
  msgstr ""
2912
 
2913
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:60
2914
  msgid "Your password has been reset successfully."
2915
  msgstr ""
2916
 
2917
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:73
2918
  msgid "Are you sure you want to log out? <a href=\"%s\">Confirm and log out</a>"
2919
  msgstr ""
2920
 
2921
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:203
2922
  msgid "Enter a username or email address."
2923
  msgstr ""
2924
 
 
2925
  #: includes/shortcodes/class-ur-shortcode-my-account.php:224
2926
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:229
2927
  msgid "Invalid username or email."
2928
  msgstr ""
2929
 
2930
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:239
2931
  msgid "Password reset is not allowed for this user"
2932
  msgstr ""
2933
 
2934
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:252
2935
  msgid "The email could not be sent. Contact your site administrator. "
2936
  msgstr ""
2937
 
2973
  msgid "Gravatar"
2974
  msgstr ""
2975
 
2976
+ #: templates/myaccount/form-login.php:54
2977
  msgid "Username or email address"
2978
  msgstr ""
2979
 
2980
+ #: templates/myaccount/form-login.php:58
2981
  msgid "Password"
2982
  msgstr ""
2983
 
2984
+ #: templates/myaccount/form-login.php:72
2985
  msgid "Login"
2986
  msgstr ""
2987
 
2988
+ #: templates/myaccount/form-login.php:81
2989
  msgid "Remember me"
2990
  msgstr ""
2991
 
2992
+ #: templates/myaccount/form-login.php:94
2993
  msgid "Lost your password?"
2994
  msgstr ""
2995
 
package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "user-registration",
3
- "version": "1.4.7",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
1
  {
2
  "name": "user-registration",
3
+ "version": "1.4.8",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: user registration, registration, user profile, registration form, login fo
4
  Requires at least: 4.0
5
  Requires PHP: 5.4
6
  Tested up to: 4.9
7
- Stable tag: 1.4.7
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -72,6 +72,10 @@ User Registration can be easily extended with some premium addons.
72
 
73
  * [Payments (PayPal)](https://wpeverest.com/wordpress-plugins/user-registration/payments/?utm_source=wporg&utm_medium=link&utm_campaign=user-registration-readme) - Integrates PayPal into your forms for registration fee payments, donations, and more.
74
 
 
 
 
 
75
  == Installation ==
76
 
77
  1. Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your server (in the /wp-content/plugins/ directory).
@@ -104,6 +108,12 @@ Yes, the plugin is designed to work with any themes that have been coded followi
104
 
105
  == Changelog ==
106
 
 
 
 
 
 
 
107
  = 1.4.7 - 20/09/2018 =
108
  * Feature - Google reCaptcha on login form
109
  * Feature - Templates for login form
@@ -174,4 +184,4 @@ Yes, the plugin is designed to work with any themes that have been coded followi
174
  == Upgrade Notice ==
175
 
176
  = 1.3.0 =
177
- 1.3.0 is a major release. Make a full site backup and run the database updater immediately after the upgrade.
4
  Requires at least: 4.0
5
  Requires PHP: 5.4
6
  Tested up to: 4.9
7
+ Stable tag: 1.4.8
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
72
 
73
  * [Payments (PayPal)](https://wpeverest.com/wordpress-plugins/user-registration/payments/?utm_source=wporg&utm_medium=link&utm_campaign=user-registration-readme) - Integrates PayPal into your forms for registration fee payments, donations, and more.
74
 
75
+ * [Geolocation](https://wpeverest.com/wordpress-plugins/user-registration/geolocation/?utm_source=wporg&utm_medium=link&utm_campaign=user-registration-readme) - Collects and stores users geolocation data along with their form filled information.
76
+
77
+ * [LearnDash](https://wpeverest.com/wordpress-plugins/user-registration/learndash/?utm_source=wporg&utm_medium=link&utm_campaign=user-registration-readme) - Allows users to view their registered learndash courses, course progresses, expiry date on my account section and more.
78
+
79
  == Installation ==
80
 
81
  1. Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your server (in the /wp-content/plugins/ directory).
108
 
109
  == Changelog ==
110
 
111
+ = 1.4.8 - 09/10/2018 =
112
+ * Fix - Default reCaptcha checked on login settings
113
+ * Fix - Deactivation notice on certain conditions
114
+ * Fix - Multiselect support on form settings
115
+ * Tweak - Formwise settings save format
116
+
117
  = 1.4.7 - 20/09/2018 =
118
  * Feature - Google reCaptcha on login form
119
  * Feature - Templates for login form
184
  == Upgrade Notice ==
185
 
186
  = 1.3.0 =
187
+ 1.3.0 is a major release. Make a full site backup and run the database updater immediately after the upgrade.
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.4.7
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.4.7';
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.4.8
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.4.8';
34
 
35
  /**
36
  * Session instance.