WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress - Version 3.0.2

Version Description

Download this release

Release Info

Developer rabbii
Plugin Icon 128x128 WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.2

admin/class-admin-settings.php CHANGED
@@ -401,6 +401,12 @@ class WPUF_Admin_Settings {
401
 
402
  wp_enqueue_style( 'wpuf-admin', WPUF_ASSET_URI . '/css/admin.css', false, WPUF_VERSION );
403
  wp_enqueue_script( 'wpuf-admin-script', WPUF_ASSET_URI . '/js/wpuf-admin.js', array( 'jquery' ), false, WPUF_VERSION );
 
 
 
 
 
 
404
  }
405
 
406
  }
401
 
402
  wp_enqueue_style( 'wpuf-admin', WPUF_ASSET_URI . '/css/admin.css', false, WPUF_VERSION );
403
  wp_enqueue_script( 'wpuf-admin-script', WPUF_ASSET_URI . '/js/wpuf-admin.js', array( 'jquery' ), false, WPUF_VERSION );
404
+
405
+ wp_localize_script( 'wpuf-admin-script', 'wpuf_admin_script', array(
406
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
407
+ 'nonce' => wp_create_nonce( 'wpuf_nonce' ),
408
+ 'cleared_schedule_lock' => __( 'Schedule lock has been cleared', 'wp-user-frontend' ),
409
+ ) );
410
  }
411
 
412
  }
admin/html/form-settings-post-edit.php CHANGED
@@ -6,6 +6,7 @@ $page_id = isset( $form_settings['edit_page_id'] ) ? $form_settings
6
  $url = isset( $form_settings['edit_url'] ) ? $form_settings['edit_url'] : '';
7
  $update_text = isset( $form_settings['update_text'] ) ? $form_settings['update_text'] : __( 'Update', 'wp-user-frontend' );
8
  $subscription = isset( $form_settings['subscription'] ) ? $form_settings['subscription'] : null;
 
9
  ?>
10
  <table class="form-table">
11
 
@@ -93,4 +94,15 @@ $subscription = isset( $form_settings['subscription'] ) ? $form_settings
93
  <input type="text" name="wpuf_settings[update_text]" value="<?php echo esc_attr( $update_text ); ?>">
94
  </td>
95
  </tr>
 
 
 
 
 
 
 
 
 
 
 
96
  </table>
6
  $url = isset( $form_settings['edit_url'] ) ? $form_settings['edit_url'] : '';
7
  $update_text = isset( $form_settings['update_text'] ) ? $form_settings['update_text'] : __( 'Update', 'wp-user-frontend' );
8
  $subscription = isset( $form_settings['subscription'] ) ? $form_settings['subscription'] : null;
9
+ $lock_edit_post = isset( $form_settings['lock_edit_post'] ) ? $form_settings['lock_edit_post'] : '';
10
  ?>
11
  <table class="form-table">
12
 
94
  <input type="text" name="wpuf_settings[update_text]" value="<?php echo esc_attr( $update_text ); ?>">
95
  </td>
96
  </tr>
97
+
98
+ <tr class="lock-edit-post">
99
+ <th><?php _e( 'Lock User From Editing After', 'wp-user-frontend' ); ?></th>
100
+ <td>
101
+ <input type="number" name="wpuf_settings[lock_edit_post]" id="lock_edit_post" value="<?php echo $lock_edit_post; ?>">
102
+ <span><?php _e( 'hours', 'wp-user-frontend' ); ?></span>
103
+ <p class="description">
104
+ <?php _e( 'After how many hours user will be locked from editing the submitted post.', 'wp-user-frontend' ) ?>
105
+ </p>
106
+ </td>
107
+ </tr>
108
  </table>
admin/posting.php CHANGED
@@ -16,11 +16,12 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
16
  // meta boxes
17
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes') );
18
  add_action( 'add_meta_boxes', array( $this, 'add_meta_box_form_select') );
19
-
20
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_script') );
21
-
22
  add_action( 'save_post', array( $this, 'save_meta'), 1, 2 ); // save the custom fields
23
  add_action( 'save_post', array( $this, 'form_selection_metabox_save' ), 1, 2 ); // save edit form id
 
 
24
  }
25
 
26
  public static function init() {
@@ -101,7 +102,6 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
101
  }
102
  }
103
 
104
-
105
  /**
106
  * Form selection meta box in post types
107
  *
@@ -127,7 +127,7 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
127
  <?php } ?>
128
  </select>
129
  <div>
130
- <p><a href="https://wedevs.com/docs/wp-user-frontend-pro/tutorials/purpose-of-the-wpuf-form-metabox/" target="_blank"><?php _e( 'Purpose of this metabox', 'wp-user-frontend' ); ?></a></p>
131
  </div>
132
  <?php
133
  }
@@ -158,6 +158,89 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
158
  update_post_meta( $post->ID, '_wpuf_form_id', $_POST['wpuf_form_select'] );
159
  }
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  /**
162
  * Meta box to show WPUF Custom Fields
163
  *
@@ -430,4 +513,23 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
430
  WPUF_Frontend_Form_Post::update_post_meta( $meta_vars, $post_id );
431
  }
432
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  }
16
  // meta boxes
17
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes') );
18
  add_action( 'add_meta_boxes', array( $this, 'add_meta_box_form_select') );
19
+ add_action( 'add_meta_boxes', array( $this, 'add_meta_box_post_lock') );
20
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_script') );
 
21
  add_action( 'save_post', array( $this, 'save_meta'), 1, 2 ); // save the custom fields
22
  add_action( 'save_post', array( $this, 'form_selection_metabox_save' ), 1, 2 ); // save edit form id
23
+ add_action( 'save_post', array( $this, 'post_lock_metabox_save' ), 1, 2 ); // save post lock option
24
+ add_action( 'wp_ajax_wpuf_clear_schedule_lock', array($this, 'clear_schedule_lock') );
25
  }
26
 
27
  public static function init() {
102
  }
103
  }
104
 
 
105
  /**
106
  * Form selection meta box in post types
107
  *
127
  <?php } ?>
128
  </select>
129
  <div>
130
+ <p><a href="https://wedevs.com/docs/wp-user-frontend-pro/tutorials/purpose-of-the-wpuf-form-metabox/" target="_blank"><?php _e( 'Learn more', 'wp-user-frontend' ); ?></a></p>
131
  </div>
132
  <?php
133
  }
158
  update_post_meta( $post->ID, '_wpuf_form_id', $_POST['wpuf_form_select'] );
159
  }
160
 
161
+ /**
162
+ * Meta box for post lock
163
+ *
164
+ * Registers a meta box in public post types to select the desired WPUF
165
+ * form select box to assign a form id.
166
+ *
167
+ * @since 3.0.2
168
+ *
169
+ * @return void
170
+ */
171
+ function add_meta_box_post_lock() {
172
+ $post_types = get_post_types( array('public' => true) );
173
+
174
+ foreach ($post_types as $post_type) {
175
+ add_meta_box( 'wpuf-post-lock', __('WPUF Lock User', 'wp-user-frontend'), array($this, 'post_lock_metabox'), $post_type, 'side', 'high' );
176
+ }
177
+ }
178
+
179
+ /**
180
+ * Post lock meta box in post types
181
+ *
182
+ * Registered via $this->add_meta_box_post_lock()
183
+ *
184
+ * @since 3.0.2
185
+ *
186
+ * @global object $post
187
+ */
188
+ function post_lock_metabox() {
189
+ global $post;
190
+
191
+ $msg = '';
192
+ $edit_post_lock = get_post_meta( $post->ID, '_wpuf_lock_editing_post', true );
193
+ $edit_post_lock_time = get_post_meta( $post->ID, '_wpuf_lock_user_editing_post_time', true );
194
+
195
+ if( !empty( $edit_post_lock_time ) && $edit_post_lock_time > time() ) {
196
+ $time = date( 'Y-m-d H:i:s', $edit_post_lock_time );
197
+ $local_time = get_date_from_gmt( $time, get_option('date_format') . ' ' . get_option('time_format') );
198
+ $msg = sprintf( __( 'Frontend edit access for this post will be automatically locked after %s, <a id="wpuf_clear_schedule_lock" data="%s" href="#">Clear Schedule Lock</a> Or,', 'wp-user-frontend' ), $local_time, $post->ID );
199
+ }
200
+
201
+ ?>
202
+
203
+ <input type="hidden" name="wpuf_lock_editing_post_nonce" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
204
+
205
+ <p><?php echo $msg; ?></p>
206
+
207
+ <label>
208
+ <input type="hidden" name="wpuf_lock_post" value="no">
209
+ <input type="checkbox" name="wpuf_lock_post" value="yes" <?php checked($edit_post_lock, 'yes'); ?>>
210
+ <?php _e( 'Lock Post', 'wp-user-frontend' ); ?>
211
+ </label>
212
+ <p style="margin-top: 10px"><?php _e( 'Lock user from editing this post from the frontend dashboard', 'wp-user-frontend' ); ?></p>
213
+ <?php
214
+ }
215
+
216
+ /**
217
+ * Save the lock post option
218
+ *
219
+ * @since 3.0.2
220
+ *
221
+ * @param int $post_id
222
+ * @param object $post
223
+ * @return int|void
224
+ */
225
+ function post_lock_metabox_save( $post_id, $post ) {
226
+ $edit_post_lock_time = isset( $_POST['_wpuf_lock_user_editing_post_time'] ) ? $_POST['_wpuf_lock_user_editing_post_time'] : '';
227
+
228
+ if ( !isset($_POST['wpuf_lock_post'])) {
229
+ return $post->ID;
230
+ }
231
+
232
+ if ( !wp_verify_nonce( $_POST['wpuf_lock_editing_post_nonce'], plugin_basename( __FILE__ ) ) ) {
233
+ return $post->ID;
234
+ }
235
+
236
+ // Is the user allowed to edit the post or page?
237
+ if ( !current_user_can( 'edit_post', $post->ID ) ) {
238
+ return $post->ID;
239
+ }
240
+
241
+ update_post_meta( $post->ID, '_wpuf_lock_editing_post', $_POST['wpuf_lock_post'] );
242
+ }
243
+
244
  /**
245
  * Meta box to show WPUF Custom Fields
246
  *
513
  WPUF_Frontend_Form_Post::update_post_meta( $meta_vars, $post_id );
514
  }
515
 
516
+ /**
517
+ * Clear Schedule lock
518
+ *
519
+ * @since 3.0.2
520
+ */
521
+ public function clear_schedule_lock() {
522
+ check_ajax_referer( 'wpuf_nonce', 'nonce' );
523
+
524
+ $post_id = isset( $_POST['post_id'] ) ? $_POST['post_id'] : '';
525
+ if ( !empty( $post_id ) ) {
526
+ $edit_post_lock_time = get_post_meta( $post_id, '_wpuf_lock_user_editing_post_time', true );
527
+
528
+ if ( !empty( $edit_post_lock_time ) ) {
529
+ update_post_meta( $post_id, '_wpuf_lock_user_editing_post_time', '' );
530
+ }
531
+ }
532
+ exit;
533
+ }
534
+
535
  }
assets/css/frontend-forms.css CHANGED
File without changes
assets/js/wpuf-admin.js CHANGED
@@ -26,6 +26,33 @@ jQuery(function($) {
26
  $(this.children[0]).attr("checked", "checked");
27
  $(".wpuf-form-layouts li").removeClass('active');
28
  $(this).toggleClass('active');
29
- })
 
 
 
 
 
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  });
26
  $(this.children[0]).attr("checked", "checked");
27
  $(".wpuf-form-layouts li").removeClass('active');
28
  $(this).toggleClass('active');
29
+ });
30
+
31
+ // Clear schedule lock
32
+ $('#wpuf_clear_schedule_lock').on('click', function(e) {
33
+ e.preventDefault();
34
+ var post_id = $(this).attr('data');
35
 
36
+ $.ajax({
37
+ url: wpuf_admin_script.ajaxurl,
38
+ type: 'POST',
39
+ data: {
40
+ 'action' : 'wpuf_clear_schedule_lock',
41
+ 'nonce' : wpuf_admin_script.nonce,
42
+ 'post_id' : post_id
43
+ },
44
+ success:function(data) {
45
+ swal({
46
+ type: 'success',
47
+ title: wpuf_admin_script.cleared_schedule_lock,
48
+ showConfirmButton: false,
49
+ timer: 1500
50
+ });
51
+ },
52
+ error: function(errorThrown){
53
+ console.log(errorThrown);
54
+ }
55
+ });
56
+ $(this).closest("p").hide();
57
+ });
58
  });
class/frontend-dashboard.php CHANGED
File without changes
class/frontend-form-post.php CHANGED
@@ -179,6 +179,24 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
179
  return '<div class="wpuf-info">' . __( 'Invalid post', 'wp-user-frontend' ) . '</div>';
180
  }
181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  //is editing enabled?
183
  if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) != 'yes' ) {
184
  return '<div class="wpuf-info">' . __( 'Post Editing is disabled', 'wp-user-frontend' ) . '</div>';
@@ -410,7 +428,19 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
410
  if ( isset( $_POST['wpuf_is_publish_time'] ) ) {
411
 
412
  if ( isset( $_POST[$_POST['wpuf_is_publish_time']] ) && !empty( $_POST[$_POST['wpuf_is_publish_time']] ) ) {
413
- $postarr['post_date'] = date( 'Y-m-d H:i:s', strtotime( str_replace( array( ':', '/' ), '-', $_POST[$_POST['wpuf_is_publish_time']] ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
414
  }
415
  }
416
 
@@ -491,6 +521,17 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
491
 
492
  $post_id = wp_insert_post( $postarr );
493
 
 
 
 
 
 
 
 
 
 
 
 
494
  if ( $post_id ) {
495
 
496
  self::update_post_meta( $meta_vars, $post_id );
@@ -954,6 +995,8 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
954
  // delete any previous value
955
  delete_post_meta( $post_id, $file_input['name'] );
956
 
 
 
957
  if ( count( $file_input['value'] ) > 1 ) {
958
  $image_ids = maybe_serialize( $file_input['value'] );
959
  }
179
  return '<div class="wpuf-info">' . __( 'Invalid post', 'wp-user-frontend' ) . '</div>';
180
  }
181
 
182
+ $edit_post_lock = get_post_meta( $post_id, '_wpuf_lock_editing_post', true );
183
+ $edit_post_lock_time = get_post_meta( $post_id, '_wpuf_lock_user_editing_post_time', true );
184
+
185
+ if ( $edit_post_lock == 'yes' ) {
186
+ return '<div class="wpuf-info">' . apply_filters( 'wpuf_edit_post_lock_user_notice', __( 'Your edit access for this post has been locked by an administrator.', 'wp-user-frontend' ) ) . '</div>';
187
+ }
188
+
189
+ if ( !empty( $edit_post_lock_time ) && $edit_post_lock_time < time() ) {
190
+ return '<div class="wpuf-info">' . apply_filters( 'wpuf_edit_post_lock_expire_notice', __( 'Your allocated time for editing this post has been expired.', 'wp-user-frontend' ) ) . '</div>';
191
+ }
192
+
193
+ if ( wpuf_get_user()->edit_post_locked() ) {
194
+ if ( !empty( wpuf_get_user()->edit_post_lock_reason() ) ) {
195
+ return '<div class="wpuf-info">' . wpuf_get_user()->edit_post_lock_reason() . '</div>';
196
+ }
197
+ return '<div class="wpuf-info">' . apply_filters( 'wpuf_user_edit_post_lock_notice', __( 'Your post edit access has been locked by an administrator.', 'wp-user-frontend' ) ) . '</div>';
198
+ }
199
+
200
  //is editing enabled?
201
  if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) != 'yes' ) {
202
  return '<div class="wpuf-info">' . __( 'Post Editing is disabled', 'wp-user-frontend' ) . '</div>';
428
  if ( isset( $_POST['wpuf_is_publish_time'] ) ) {
429
 
430
  if ( isset( $_POST[$_POST['wpuf_is_publish_time']] ) && !empty( $_POST[$_POST['wpuf_is_publish_time']] ) ) {
431
+ $date_time = explode(" ", $_POST[$_POST['wpuf_is_publish_time']] );
432
+
433
+ if ( !empty ( $date_time[0] ) ) {
434
+ $timestamp = strtotime( str_replace( array( '/' ), '-', $date_time[0] ) );
435
+ }
436
+
437
+ if ( !empty ( $date_time[1] ) ) {
438
+ $time = explode(':', $date_time[1] );
439
+ $seconds = ( $time[0] * 60 * 60 ) + ($time[1] * 60);
440
+ $timestamp = $timestamp + $seconds;
441
+ }
442
+
443
+ $postarr['post_date'] = date( 'Y-m-d H:i:s', $timestamp );
444
  }
445
  }
446
 
521
 
522
  $post_id = wp_insert_post( $postarr );
523
 
524
+ // add _wpuf_lock_editing_post_time meta to
525
+ // lock user from editing the published post after a certain time
526
+ if ( !$is_update ) {
527
+ $lock_edit_post = isset( $form_settings['lock_edit_post'] ) ? floatval( $form_settings['lock_edit_post'] ) : 0;
528
+
529
+ if ( $post_id && $lock_edit_post > 0 ) {
530
+ $lock_edit_post_time = time() + ( $lock_edit_post * 60 * 60 );
531
+ update_post_meta( $post_id, '_wpuf_lock_user_editing_post_time', $lock_edit_post_time );
532
+ }
533
+ }
534
+
535
  if ( $post_id ) {
536
 
537
  self::update_post_meta( $meta_vars, $post_id );
995
  // delete any previous value
996
  delete_post_meta( $post_id, $file_input['name'] );
997
 
998
+ $image_ids = '';
999
+
1000
  if ( count( $file_input['value'] ) > 1 ) {
1001
  $image_ids = maybe_serialize( $file_input['value'] );
1002
  }
includes/class-user.php CHANGED
@@ -61,6 +61,24 @@ class WPUF_User {
61
  return get_user_meta( $this->id, 'wpuf_lock_cause', true );
62
  }
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  /**
65
  * Handles user subscription
66
  *
61
  return get_user_meta( $this->id, 'wpuf_lock_cause', true );
62
  }
63
 
64
+ /**
65
+ * Check if a user's post edit capability is locked
66
+ *
67
+ * @return boolean
68
+ */
69
+ public function edit_post_locked() {
70
+ return 'yes' == get_user_meta( $this->id, 'wpuf_edit_postlock', true );
71
+ }
72
+
73
+ /**
74
+ * Get the edit post lock reason
75
+ *
76
+ * @return string
77
+ */
78
+ public function edit_post_lock_reason() {
79
+ return get_user_meta( $this->id, 'wpuf_edit_post_lock_cause', true );
80
+ }
81
+
82
  /**
83
  * Handles user subscription
84
  *
includes/class-wc-vendors-integration.php CHANGED
@@ -42,7 +42,7 @@ class WPUF_WC_Vendors_Integration{
42
  );
43
 
44
  $settings[] = array(
45
- 'title' => __('Allow Post', 'wp-user-frontend'),
46
  'desc_tip' => __('Select a post form that will show on the vendor dashboard.', 'wp-user-frontend'),
47
  'id' => 'wcvendors_wpuf_allowed_post_form',
48
  'type' => 'select',
42
  );
43
 
44
  $settings[] = array(
45
+ 'title' => __('Select Post Form', 'wp-user-frontend'),
46
  'desc_tip' => __('Select a post form that will show on the vendor dashboard.', 'wp-user-frontend'),
47
  'id' => 'wcvendors_wpuf_allowed_post_form',
48
  'type' => 'select',
includes/free/edit-profile.php CHANGED
@@ -241,9 +241,12 @@ class WPUF_Edit_Profile {
241
  $wpuf_subscription = $current_user->subscription();
242
  $post_locked = $current_user->post_locked();
243
  $lock_reason = $current_user->lock_reason();
 
 
244
 
245
  if ( is_admin() && current_user_can( 'edit_users' ) ) {
246
- $select = ( $post_locked == true ) ? 'yes' : 'no';
 
247
  ?>
248
  <div class="wpuf-user-post-lock">
249
  <h3><?php _e( 'WPUF Post Lock', 'wp-user-frontend' ); ?></h3>
@@ -258,13 +261,29 @@ class WPUF_Edit_Profile {
258
  <span class="description"><?php _e( 'Lock user from creating new post.', 'wp-user-frontend' ); ?></span></em>
259
  </td>
260
  </tr>
261
-
262
  <tr>
263
  <th><label for="post-lock"><?php _e( 'Lock Reason:', 'wp-user-frontend' ); ?> </label></th>
264
  <td>
265
  <input type="text" name="wpuf_lock_cause" id="wpuf_lock_cause" class="regular-text" value="<?php echo esc_attr( $lock_reason ); ?>" />
266
  </td>
267
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  </table>
269
  </div>
270
  <?php
@@ -280,6 +299,8 @@ class WPUF_Edit_Profile {
280
  if ( is_admin() && current_user_can( 'edit_users' ) ) {
281
  update_user_meta( $user_id, 'wpuf_postlock', $_POST['wpuf_postlock'] );
282
  update_user_meta( $user_id, 'wpuf_lock_cause', $_POST['wpuf_lock_cause'] );
 
 
283
  }
284
  }
285
 
241
  $wpuf_subscription = $current_user->subscription();
242
  $post_locked = $current_user->post_locked();
243
  $lock_reason = $current_user->lock_reason();
244
+ $edit_post_locked = $current_user->edit_post_locked();
245
+ $edit_lock_reason = $current_user->edit_post_lock_reason();
246
 
247
  if ( is_admin() && current_user_can( 'edit_users' ) ) {
248
+ $select = ( $post_locked == true ) ? 'yes' : 'no';
249
+ $edit_post_select = ( $edit_post_locked == true ) ? 'yes' : 'no';
250
  ?>
251
  <div class="wpuf-user-post-lock">
252
  <h3><?php _e( 'WPUF Post Lock', 'wp-user-frontend' ); ?></h3>
261
  <span class="description"><?php _e( 'Lock user from creating new post.', 'wp-user-frontend' ); ?></span></em>
262
  </td>
263
  </tr>
 
264
  <tr>
265
  <th><label for="post-lock"><?php _e( 'Lock Reason:', 'wp-user-frontend' ); ?> </label></th>
266
  <td>
267
  <input type="text" name="wpuf_lock_cause" id="wpuf_lock_cause" class="regular-text" value="<?php echo esc_attr( $lock_reason ); ?>" />
268
  </td>
269
  </tr>
270
+
271
+ <tr>
272
+ <th><label for="post-lock"><?php _e( 'Lock Edit Post:', 'wp-user-frontend' ); ?> </label></th>
273
+ <td>
274
+ <select name="wpuf_edit_postlock" id="edit-post-lock">
275
+ <option value="no"<?php selected( $edit_post_select, 'no' ); ?>>No</option>
276
+ <option value="yes"<?php selected( $edit_post_select, 'yes' ); ?>>Yes</option>
277
+ </select>
278
+ <span class="description"><?php _e( 'Lock user from editing post.', 'wp-user-frontend' ); ?></span></em>
279
+ </td>
280
+ </tr>
281
+ <tr>
282
+ <th><label for="post-lock"><?php _e( 'Edit Post Lock Reason:', 'wp-user-frontend' ); ?> </label></th>
283
+ <td>
284
+ <input type="text" name="wpuf_edit_post_lock_cause" id="wpuf_edit_post_lock_cause" class="regular-text" value="<?php echo esc_attr( $edit_lock_reason ); ?>" />
285
+ </td>
286
+ </tr>
287
  </table>
288
  </div>
289
  <?php
299
  if ( is_admin() && current_user_can( 'edit_users' ) ) {
300
  update_user_meta( $user_id, 'wpuf_postlock', $_POST['wpuf_postlock'] );
301
  update_user_meta( $user_id, 'wpuf_lock_cause', $_POST['wpuf_lock_cause'] );
302
+ update_user_meta( $user_id, 'wpuf_edit_postlock', $_POST['wpuf_edit_postlock'] );
303
+ update_user_meta( $user_id, 'wpuf_edit_post_lock_cause', $_POST['wpuf_edit_post_lock_cause'] );
304
  }
305
  }
306
 
languages/wp-user-frontend.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2018 Tareq Hasan
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP User Frontend 3.0.0\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2018-12-04 10:16:48+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
14
  "X-Generator: grunt-wp-i18n 0.5.4\n"
@@ -83,6 +83,10 @@ msgstr ""
83
  msgid "Number of items per page:"
84
  msgstr ""
85
 
 
 
 
 
86
  #: admin/class-admin-subscription.php:60
87
  msgid "Pack Description"
88
  msgstr ""
@@ -139,7 +143,7 @@ msgstr ""
139
  #: admin/class-admin-subscription.php:216
140
  #: admin/class-admin-subscription.php:570 class/frontend-account.php:244
141
  #: class/subscription.php:866 includes/class-user-subscription.php:307
142
- #: templates/subscriptions/pack-details.php:26
143
  msgid "Free"
144
  msgstr ""
145
 
@@ -334,7 +338,7 @@ msgstr ""
334
 
335
  #: admin/class-tools.php:39 admin/class-tools.php:95
336
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:86
337
- #: includes/class-list-table-subscribers.php:126 wpuf-functions.php:2608
338
  msgid "All"
339
  msgstr ""
340
 
@@ -554,12 +558,12 @@ msgid "Are you sure you want to delete this field?"
554
  msgstr ""
555
 
556
  #: admin/form-builder/class-wpuf-admin-form-builder.php:326
557
- #: admin/posting.php:69 class/asset-loader.php:55 wpuf.php:544
558
  msgid "Yes, delete it"
559
  msgstr ""
560
 
561
  #: admin/form-builder/class-wpuf-admin-form-builder.php:327
562
- #: admin/posting.php:70 class/asset-loader.php:56 wpuf.php:545
563
  msgid "No, cancel it"
564
  msgstr ""
565
 
@@ -1462,66 +1466,78 @@ msgstr ""
1462
  msgid "Update"
1463
  msgstr ""
1464
 
1465
- #: admin/html/form-settings-post-edit.php:13
1466
  msgid "Set Post Status to"
1467
  msgstr ""
1468
 
1469
- #: admin/html/form-settings-post-edit.php:23
1470
  msgid "No Change"
1471
  msgstr ""
1472
 
1473
- #: admin/html/form-settings-post-edit.php:30
1474
  #: admin/html/form-settings-post.php:132 includes/free/form-element.php:376
1475
  msgid "Redirect To"
1476
  msgstr ""
1477
 
1478
- #: admin/html/form-settings-post-edit.php:35
1479
  #: admin/html/form-settings-post.php:137
1480
  msgid "Newly created post"
1481
  msgstr ""
1482
 
1483
- #: admin/html/form-settings-post-edit.php:36
1484
  #: admin/html/form-settings-post.php:138 includes/free/form-element.php:381
1485
  msgid "Same Page"
1486
  msgstr ""
1487
 
1488
- #: admin/html/form-settings-post-edit.php:37
1489
  #: admin/html/form-settings-post.php:139 includes/free/form-element.php:382
1490
  msgid "To a page"
1491
  msgstr ""
1492
 
1493
- #: admin/html/form-settings-post-edit.php:38
1494
  #: admin/html/form-settings-post.php:140 includes/free/form-element.php:383
1495
  msgid "To a custom URL"
1496
  msgstr ""
1497
 
1498
- #: admin/html/form-settings-post-edit.php:47
1499
  #: admin/html/form-settings-post.php:149 includes/free/form-element.php:392
1500
  msgid "After successfull submit, where the page will redirect to"
1501
  msgstr ""
1502
 
1503
- #: admin/html/form-settings-post-edit.php:53
1504
  msgid "Post Update Message"
1505
  msgstr ""
1506
 
1507
- #: admin/html/form-settings-post-edit.php:60
1508
  #: admin/html/form-settings-post.php:162 includes/free/form-element.php:412
1509
  msgid "Page"
1510
  msgstr ""
1511
 
1512
- #: admin/html/form-settings-post-edit.php:75
1513
  #: admin/html/form-settings-post.php:177 includes/free/form-element.php:427
1514
  msgid "Custom URL"
1515
  msgstr ""
1516
 
1517
- #: admin/html/form-settings-post-edit.php:82
1518
  msgid "Subscription Title"
1519
  msgstr ""
1520
 
1521
- #: admin/html/form-settings-post-edit.php:91
1522
  msgid "Update Post Button text"
1523
  msgstr ""
1524
 
 
 
 
 
 
 
 
 
 
 
 
 
1525
  #: admin/html/form-settings-post.php:7 class/post-form-templates/post.php:118
1526
  #: includes/free/post-form-templates/the_events_calendar.php:171
1527
  msgid "This page is restricted. Please Log in / Register to view this page."
@@ -2458,7 +2474,7 @@ msgid ""
2458
  msgstr ""
2459
 
2460
  #: admin/installer.php:77 admin/settings-options.php:23
2461
- #: includes/free/admin/shortcode-button.php:82 wpuf-functions.php:1621
2462
  msgid "Dashboard"
2463
  msgstr ""
2464
 
@@ -2474,7 +2490,7 @@ msgstr ""
2474
  #: admin/installer.php:88 class/subscription.php:356 class/subscription.php:376
2475
  #: class/subscription.php:377 class/subscription.php:378
2476
  #: includes/free/admin/shortcode-button.php:102
2477
- #: templates/dashboard/dashboard.php:18 wpuf-functions.php:1624
2478
  msgid "Subscription"
2479
  msgstr ""
2480
 
@@ -2569,40 +2585,59 @@ msgstr ""
2569
  msgid "Draft"
2570
  msgstr ""
2571
 
2572
- #: admin/posting.php:68 class/asset-loader.php:54 class/render-form.php:1698
2573
  #: wpuf.php:543
2574
  msgid "Are you sure?"
2575
  msgstr ""
2576
 
2577
- #: admin/posting.php:76 class/asset-loader.php:62 wpuf.php:553
2578
  msgid "Allowed Files"
2579
  msgstr ""
2580
 
2581
- #: admin/posting.php:79 class/asset-loader.php:65 wpuf.php:559
2582
  msgid "Maximum number of files reached!"
2583
  msgstr ""
2584
 
2585
- #: admin/posting.php:80 class/asset-loader.php:66 wpuf.php:560
2586
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
2587
  msgstr ""
2588
 
2589
- #: admin/posting.php:81 class/asset-loader.php:67 wpuf.php:561
2590
  msgid "You have uploaded an incorrect file type. Please try again."
2591
  msgstr ""
2592
 
2593
- #: admin/posting.php:100
2594
  msgid "WPUF Form"
2595
  msgstr ""
2596
 
2597
  #: admin/posting.php:130
2598
- msgid "Purpose of this metabox"
 
 
 
 
2599
  msgstr ""
2600
 
2601
- #: admin/posting.php:174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2602
  msgid "WPUF Custom Fields"
2603
  msgstr ""
2604
 
2605
- #: admin/posting.php:225
2606
  msgid "No custom fields found."
2607
  msgstr ""
2608
 
@@ -3588,35 +3623,47 @@ msgstr ""
3588
  msgid "You are not logged in"
3589
  msgstr ""
3590
 
3591
- #: class/frontend-form-post.php:179 class/frontend-form-post.php:190
3592
  msgid "Invalid post"
3593
  msgstr ""
3594
 
3595
- #: class/frontend-form-post.php:184
 
 
 
 
 
 
 
 
 
 
 
 
3596
  msgid "Post Editing is disabled"
3597
  msgstr ""
3598
 
3599
- #: class/frontend-form-post.php:195
3600
  msgid "You are not allowed to edit"
3601
  msgstr ""
3602
 
3603
- #: class/frontend-form-post.php:207
3604
  msgid "I don't know how to edit this post, I don't have the form ID"
3605
  msgstr ""
3606
 
3607
- #: class/frontend-form-post.php:213
3608
  msgid "You can't edit a post while in pending mode."
3609
  msgstr ""
3610
 
3611
- #: class/frontend-form-post.php:286 includes/free/class-login.php:394
3612
  msgid "Empty reCaptcha Field"
3613
  msgstr ""
3614
 
3615
- #: class/frontend-form-post.php:317
3616
  msgid "Invalid email address."
3617
  msgstr ""
3618
 
3619
- #: class/frontend-form-post.php:326
3620
  msgid ""
3621
  "You already have an account in our site. Please login to continue.\n"
3622
  "\n"
@@ -3625,21 +3672,21 @@ msgid ""
3625
  "Click 'Cancel' to stay at this page."
3626
  msgstr ""
3627
 
3628
- #: class/frontend-form-post.php:375
3629
  msgid "You do not have sufficient permissions to access this form."
3630
  msgstr ""
3631
 
3632
- #: class/frontend-form-post.php:691 class/frontend-form-post.php:698
3633
  msgid ""
3634
  "Thank you for posting on our site. We have sent you an confirmation email. "
3635
  "Please check your inbox!"
3636
  msgstr ""
3637
 
3638
- #: class/frontend-form-post.php:751
3639
  msgid "Something went wrong"
3640
  msgstr ""
3641
 
3642
- #: class/frontend-form-post.php:1127
3643
  msgid "Email successfully verified. Please Login."
3644
  msgstr ""
3645
 
@@ -3664,7 +3711,7 @@ msgid "You already have activated a free package previously."
3664
  msgstr ""
3665
 
3666
  #: class/payment.php:139 includes/class-customizer.php:59
3667
- #: wpuf-functions.php:1625
3668
  msgid "Billing Address"
3669
  msgstr ""
3670
 
@@ -4142,13 +4189,12 @@ msgstr ""
4142
 
4143
  #: includes/class-dokan-integration.php:37
4144
  #: includes/class-wc-vendors-integration.php:109
4145
- #: templates/dashboard/dashboard.php:14 wpuf-functions.php:1622
4146
  msgid "Posts"
4147
  msgstr ""
4148
 
4149
  #: includes/class-dokan-integration.php:92
4150
  #: includes/class-wc-vendors-integration.php:37
4151
- #: includes/class-wc-vendors-integration.php:45
4152
  #: includes/class-wcmp-integration.php:37
4153
  msgid "Allow Post"
4154
  msgstr ""
@@ -4158,6 +4204,7 @@ msgid "Allow Vendors to submit post from dashboard area"
4158
  msgstr ""
4159
 
4160
  #: includes/class-dokan-integration.php:100
 
4161
  #: includes/class-wcmp-integration.php:47
4162
  msgid "Select Post Form"
4163
  msgstr ""
@@ -5020,22 +5067,34 @@ msgstr ""
5020
  msgid "Update Profile"
5021
  msgstr ""
5022
 
5023
- #: includes/free/edit-profile.php:249
5024
  msgid "WPUF Post Lock"
5025
  msgstr ""
5026
 
5027
- #: includes/free/edit-profile.php:252
5028
  msgid "Lock Post:"
5029
  msgstr ""
5030
 
5031
- #: includes/free/edit-profile.php:258
5032
  msgid "Lock user from creating new post."
5033
  msgstr ""
5034
 
5035
- #: includes/free/edit-profile.php:263
5036
  msgid "Lock Reason:"
5037
  msgstr ""
5038
 
 
 
 
 
 
 
 
 
 
 
 
 
5039
  #: includes/free/edit-user.php:23
5040
  msgid "User doesn't exists"
5041
  msgstr ""
@@ -5724,215 +5783,219 @@ msgstr ""
5724
  msgid "CSV"
5725
  msgstr ""
5726
 
5727
- #: wpuf-functions.php:1623
 
 
 
 
5728
  msgid "Edit Profile"
5729
  msgstr ""
5730
 
5731
- #: wpuf-functions.php:1730
5732
  msgid "United Arab Emirates Dirham"
5733
  msgstr ""
5734
 
5735
- #: wpuf-functions.php:1731
5736
  msgid "Australian Dollars"
5737
  msgstr ""
5738
 
5739
- #: wpuf-functions.php:1732
5740
  msgid "Argentine Peso"
5741
  msgstr ""
5742
 
5743
- #: wpuf-functions.php:1733
5744
  msgid "Bangladeshi Taka"
5745
  msgstr ""
5746
 
5747
- #: wpuf-functions.php:1734
5748
  msgid "Brazilian Real"
5749
  msgstr ""
5750
 
5751
- #: wpuf-functions.php:1735
5752
  msgid "Bulgarian Lev"
5753
  msgstr ""
5754
 
5755
- #: wpuf-functions.php:1736
5756
  msgid "Canadian Dollars"
5757
  msgstr ""
5758
 
5759
- #: wpuf-functions.php:1737
5760
  msgid "Chilean Peso"
5761
  msgstr ""
5762
 
5763
- #: wpuf-functions.php:1738
5764
  msgid "Chinese Yuan"
5765
  msgstr ""
5766
 
5767
- #: wpuf-functions.php:1739
5768
  msgid "Colombian Peso"
5769
  msgstr ""
5770
 
5771
- #: wpuf-functions.php:1740
5772
  msgid "Czech Koruna"
5773
  msgstr ""
5774
 
5775
- #: wpuf-functions.php:1741
5776
  msgid "Danish Krone"
5777
  msgstr ""
5778
 
5779
- #: wpuf-functions.php:1742
5780
  msgid "Dominican Peso"
5781
  msgstr ""
5782
 
5783
- #: wpuf-functions.php:1743
5784
  msgid "Algerian Dinar"
5785
  msgstr ""
5786
 
5787
- #: wpuf-functions.php:1744
5788
  msgid "Euros"
5789
  msgstr ""
5790
 
5791
- #: wpuf-functions.php:1745
5792
  msgid "Hong Kong Dollar"
5793
  msgstr ""
5794
 
5795
- #: wpuf-functions.php:1746
5796
  msgid "Croatia kuna"
5797
  msgstr ""
5798
 
5799
- #: wpuf-functions.php:1747
5800
  msgid "Hungarian Forint"
5801
  msgstr ""
5802
 
5803
- #: wpuf-functions.php:1748
5804
  msgid "Icelandic krona"
5805
  msgstr ""
5806
 
5807
- #: wpuf-functions.php:1749
5808
  msgid "Indonesia Rupiah"
5809
  msgstr ""
5810
 
5811
- #: wpuf-functions.php:1750
5812
  msgid "Indian Rupee"
5813
  msgstr ""
5814
 
5815
- #: wpuf-functions.php:1751
5816
  msgid "Nepali Rupee"
5817
  msgstr ""
5818
 
5819
- #: wpuf-functions.php:1752
5820
  msgid "Israeli Shekel"
5821
  msgstr ""
5822
 
5823
- #: wpuf-functions.php:1753
5824
  msgid "Japanese Yen"
5825
  msgstr ""
5826
 
5827
- #: wpuf-functions.php:1754
5828
  msgid "Lao Kip"
5829
  msgstr ""
5830
 
5831
- #: wpuf-functions.php:1755
5832
  msgid "South Korean Won"
5833
  msgstr ""
5834
 
5835
- #: wpuf-functions.php:1756
5836
  msgid "Malaysian Ringgits"
5837
  msgstr ""
5838
 
5839
- #: wpuf-functions.php:1757
5840
  msgid "Mexican Peso"
5841
  msgstr ""
5842
 
5843
- #: wpuf-functions.php:1758
5844
  msgid "Nigerian Naira"
5845
  msgstr ""
5846
 
5847
- #: wpuf-functions.php:1759
5848
  msgid "Norwegian Krone"
5849
  msgstr ""
5850
 
5851
- #: wpuf-functions.php:1760
5852
  msgid "New Zealand Dollar"
5853
  msgstr ""
5854
 
5855
- #: wpuf-functions.php:1761
5856
  msgid "Omani Rial"
5857
  msgstr ""
5858
 
5859
- #: wpuf-functions.php:1762
5860
  msgid "Iranian Rial"
5861
  msgstr ""
5862
 
5863
- #: wpuf-functions.php:1763
5864
  msgid "Pakistani Rupee"
5865
  msgstr ""
5866
 
5867
- #: wpuf-functions.php:1764
5868
  msgid "Paraguayan Guaraní"
5869
  msgstr ""
5870
 
5871
- #: wpuf-functions.php:1765
5872
  msgid "Philippine Pesos"
5873
  msgstr ""
5874
 
5875
- #: wpuf-functions.php:1766
5876
  msgid "Polish Zloty"
5877
  msgstr ""
5878
 
5879
- #: wpuf-functions.php:1767
5880
  msgid "Pounds Sterling"
5881
  msgstr ""
5882
 
5883
- #: wpuf-functions.php:1768
5884
  msgid "Romanian Leu"
5885
  msgstr ""
5886
 
5887
- #: wpuf-functions.php:1769
5888
  msgid "Russian Ruble"
5889
  msgstr ""
5890
 
5891
- #: wpuf-functions.php:1770
5892
  msgid "Saudi Riyal"
5893
  msgstr ""
5894
 
5895
- #: wpuf-functions.php:1771
5896
  msgid "Singapore Dollar"
5897
  msgstr ""
5898
 
5899
- #: wpuf-functions.php:1772
5900
  msgid "South African rand"
5901
  msgstr ""
5902
 
5903
- #: wpuf-functions.php:1773
5904
  msgid "Swedish Krona"
5905
  msgstr ""
5906
 
5907
- #: wpuf-functions.php:1774
5908
  msgid "Swiss Franc"
5909
  msgstr ""
5910
 
5911
- #: wpuf-functions.php:1775
5912
  msgid "Taiwan New Dollars"
5913
  msgstr ""
5914
 
5915
- #: wpuf-functions.php:1776
5916
  msgid "Thai Baht"
5917
  msgstr ""
5918
 
5919
- #: wpuf-functions.php:1777
5920
  msgid "Turkish Lira"
5921
  msgstr ""
5922
 
5923
- #: wpuf-functions.php:1778
5924
  msgid "US Dollar"
5925
  msgstr ""
5926
 
5927
- #: wpuf-functions.php:1779
5928
  msgid "Vietnamese Dong"
5929
  msgstr ""
5930
 
5931
- #: wpuf-functions.php:1780
5932
  msgid "Egyptian Pound"
5933
  msgstr ""
5934
 
5935
- #: wpuf-functions.php:2609
5936
  msgid "None"
5937
  msgstr ""
5938
 
@@ -6038,7 +6101,7 @@ msgctxt "enhanced select"
6038
  msgid "Searching&hellip;"
6039
  msgstr ""
6040
 
6041
- #: wpuf-functions.php:1234
6042
  msgctxt "tag delimiter"
6043
  msgid ","
6044
  msgstr ""
1
+ # Copyright (C) 2019 Tareq Hasan
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP User Frontend 3.0.2\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2019-01-01 06:09:41+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
14
  "X-Generator: grunt-wp-i18n 0.5.4\n"
83
  msgid "Number of items per page:"
84
  msgstr ""
85
 
86
+ #: admin/class-admin-settings.php:408
87
+ msgid "Schedule lock has been cleared"
88
+ msgstr ""
89
+
90
  #: admin/class-admin-subscription.php:60
91
  msgid "Pack Description"
92
  msgstr ""
143
  #: admin/class-admin-subscription.php:216
144
  #: admin/class-admin-subscription.php:570 class/frontend-account.php:244
145
  #: class/subscription.php:866 includes/class-user-subscription.php:307
146
+ #: templates/subscriptions/pack-details.php:25
147
  msgid "Free"
148
  msgstr ""
149
 
338
 
339
  #: admin/class-tools.php:39 admin/class-tools.php:95
340
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:86
341
+ #: includes/class-list-table-subscribers.php:126 wpuf-functions.php:2619
342
  msgid "All"
343
  msgstr ""
344
 
558
  msgstr ""
559
 
560
  #: admin/form-builder/class-wpuf-admin-form-builder.php:326
561
+ #: admin/posting.php:70 class/asset-loader.php:55 wpuf.php:544
562
  msgid "Yes, delete it"
563
  msgstr ""
564
 
565
  #: admin/form-builder/class-wpuf-admin-form-builder.php:327
566
+ #: admin/posting.php:71 class/asset-loader.php:56 wpuf.php:545
567
  msgid "No, cancel it"
568
  msgstr ""
569
 
1466
  msgid "Update"
1467
  msgstr ""
1468
 
1469
+ #: admin/html/form-settings-post-edit.php:14
1470
  msgid "Set Post Status to"
1471
  msgstr ""
1472
 
1473
+ #: admin/html/form-settings-post-edit.php:24
1474
  msgid "No Change"
1475
  msgstr ""
1476
 
1477
+ #: admin/html/form-settings-post-edit.php:31
1478
  #: admin/html/form-settings-post.php:132 includes/free/form-element.php:376
1479
  msgid "Redirect To"
1480
  msgstr ""
1481
 
1482
+ #: admin/html/form-settings-post-edit.php:36
1483
  #: admin/html/form-settings-post.php:137
1484
  msgid "Newly created post"
1485
  msgstr ""
1486
 
1487
+ #: admin/html/form-settings-post-edit.php:37
1488
  #: admin/html/form-settings-post.php:138 includes/free/form-element.php:381
1489
  msgid "Same Page"
1490
  msgstr ""
1491
 
1492
+ #: admin/html/form-settings-post-edit.php:38
1493
  #: admin/html/form-settings-post.php:139 includes/free/form-element.php:382
1494
  msgid "To a page"
1495
  msgstr ""
1496
 
1497
+ #: admin/html/form-settings-post-edit.php:39
1498
  #: admin/html/form-settings-post.php:140 includes/free/form-element.php:383
1499
  msgid "To a custom URL"
1500
  msgstr ""
1501
 
1502
+ #: admin/html/form-settings-post-edit.php:48
1503
  #: admin/html/form-settings-post.php:149 includes/free/form-element.php:392
1504
  msgid "After successfull submit, where the page will redirect to"
1505
  msgstr ""
1506
 
1507
+ #: admin/html/form-settings-post-edit.php:54
1508
  msgid "Post Update Message"
1509
  msgstr ""
1510
 
1511
+ #: admin/html/form-settings-post-edit.php:61
1512
  #: admin/html/form-settings-post.php:162 includes/free/form-element.php:412
1513
  msgid "Page"
1514
  msgstr ""
1515
 
1516
+ #: admin/html/form-settings-post-edit.php:76
1517
  #: admin/html/form-settings-post.php:177 includes/free/form-element.php:427
1518
  msgid "Custom URL"
1519
  msgstr ""
1520
 
1521
+ #: admin/html/form-settings-post-edit.php:83
1522
  msgid "Subscription Title"
1523
  msgstr ""
1524
 
1525
+ #: admin/html/form-settings-post-edit.php:92
1526
  msgid "Update Post Button text"
1527
  msgstr ""
1528
 
1529
+ #: admin/html/form-settings-post-edit.php:99
1530
+ msgid "Lock User From Editing After"
1531
+ msgstr ""
1532
+
1533
+ #: admin/html/form-settings-post-edit.php:102
1534
+ msgid "hours"
1535
+ msgstr ""
1536
+
1537
+ #: admin/html/form-settings-post-edit.php:104
1538
+ msgid "After how many hours user will be locked from editing the submitted post."
1539
+ msgstr ""
1540
+
1541
  #: admin/html/form-settings-post.php:7 class/post-form-templates/post.php:118
1542
  #: includes/free/post-form-templates/the_events_calendar.php:171
1543
  msgid "This page is restricted. Please Log in / Register to view this page."
2474
  msgstr ""
2475
 
2476
  #: admin/installer.php:77 admin/settings-options.php:23
2477
+ #: includes/free/admin/shortcode-button.php:82 wpuf-functions.php:1632
2478
  msgid "Dashboard"
2479
  msgstr ""
2480
 
2490
  #: admin/installer.php:88 class/subscription.php:356 class/subscription.php:376
2491
  #: class/subscription.php:377 class/subscription.php:378
2492
  #: includes/free/admin/shortcode-button.php:102
2493
+ #: templates/dashboard/dashboard.php:18 wpuf-functions.php:1635
2494
  msgid "Subscription"
2495
  msgstr ""
2496
 
2585
  msgid "Draft"
2586
  msgstr ""
2587
 
2588
+ #: admin/posting.php:69 class/asset-loader.php:54 class/render-form.php:1698
2589
  #: wpuf.php:543
2590
  msgid "Are you sure?"
2591
  msgstr ""
2592
 
2593
+ #: admin/posting.php:77 class/asset-loader.php:62 wpuf.php:553
2594
  msgid "Allowed Files"
2595
  msgstr ""
2596
 
2597
+ #: admin/posting.php:80 class/asset-loader.php:65 wpuf.php:559
2598
  msgid "Maximum number of files reached!"
2599
  msgstr ""
2600
 
2601
+ #: admin/posting.php:81 class/asset-loader.php:66 wpuf.php:560
2602
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
2603
  msgstr ""
2604
 
2605
+ #: admin/posting.php:82 class/asset-loader.php:67 wpuf.php:561
2606
  msgid "You have uploaded an incorrect file type. Please try again."
2607
  msgstr ""
2608
 
2609
+ #: admin/posting.php:101
2610
  msgid "WPUF Form"
2611
  msgstr ""
2612
 
2613
  #: admin/posting.php:130
2614
+ msgid "Learn more"
2615
+ msgstr ""
2616
+
2617
+ #: admin/posting.php:175
2618
+ msgid "WPUF Lock User"
2619
  msgstr ""
2620
 
2621
+ #: admin/posting.php:198
2622
+ msgid ""
2623
+ "Frontend edit access for this post will be automatically locked after %s, "
2624
+ "<a id=\"wpuf_clear_schedule_lock\" data=\"%s\" href=\"#\">Clear Schedule "
2625
+ "Lock</a> Or,"
2626
+ msgstr ""
2627
+
2628
+ #: admin/posting.php:210
2629
+ msgid "Lock Post"
2630
+ msgstr ""
2631
+
2632
+ #: admin/posting.php:212
2633
+ msgid "Lock user from editing this post from the frontend dashboard"
2634
+ msgstr ""
2635
+
2636
+ #: admin/posting.php:257
2637
  msgid "WPUF Custom Fields"
2638
  msgstr ""
2639
 
2640
+ #: admin/posting.php:308
2641
  msgid "No custom fields found."
2642
  msgstr ""
2643
 
3623
  msgid "You are not logged in"
3624
  msgstr ""
3625
 
3626
+ #: class/frontend-form-post.php:179 class/frontend-form-post.php:208
3627
  msgid "Invalid post"
3628
  msgstr ""
3629
 
3630
+ #: class/frontend-form-post.php:186
3631
+ msgid "Your edit access for this post has been locked by an administrator."
3632
+ msgstr ""
3633
+
3634
+ #: class/frontend-form-post.php:190
3635
+ msgid "Your allocated time for editing this post has been expired."
3636
+ msgstr ""
3637
+
3638
+ #: class/frontend-form-post.php:197
3639
+ msgid "Your post edit access has been locked by an administrator."
3640
+ msgstr ""
3641
+
3642
+ #: class/frontend-form-post.php:202
3643
  msgid "Post Editing is disabled"
3644
  msgstr ""
3645
 
3646
+ #: class/frontend-form-post.php:213
3647
  msgid "You are not allowed to edit"
3648
  msgstr ""
3649
 
3650
+ #: class/frontend-form-post.php:225
3651
  msgid "I don't know how to edit this post, I don't have the form ID"
3652
  msgstr ""
3653
 
3654
+ #: class/frontend-form-post.php:231
3655
  msgid "You can't edit a post while in pending mode."
3656
  msgstr ""
3657
 
3658
+ #: class/frontend-form-post.php:304 includes/free/class-login.php:394
3659
  msgid "Empty reCaptcha Field"
3660
  msgstr ""
3661
 
3662
+ #: class/frontend-form-post.php:335
3663
  msgid "Invalid email address."
3664
  msgstr ""
3665
 
3666
+ #: class/frontend-form-post.php:344
3667
  msgid ""
3668
  "You already have an account in our site. Please login to continue.\n"
3669
  "\n"
3672
  "Click 'Cancel' to stay at this page."
3673
  msgstr ""
3674
 
3675
+ #: class/frontend-form-post.php:393
3676
  msgid "You do not have sufficient permissions to access this form."
3677
  msgstr ""
3678
 
3679
+ #: class/frontend-form-post.php:732 class/frontend-form-post.php:739
3680
  msgid ""
3681
  "Thank you for posting on our site. We have sent you an confirmation email. "
3682
  "Please check your inbox!"
3683
  msgstr ""
3684
 
3685
+ #: class/frontend-form-post.php:792
3686
  msgid "Something went wrong"
3687
  msgstr ""
3688
 
3689
+ #: class/frontend-form-post.php:1170
3690
  msgid "Email successfully verified. Please Login."
3691
  msgstr ""
3692
 
3711
  msgstr ""
3712
 
3713
  #: class/payment.php:139 includes/class-customizer.php:59
3714
+ #: wpuf-functions.php:1636
3715
  msgid "Billing Address"
3716
  msgstr ""
3717
 
4189
 
4190
  #: includes/class-dokan-integration.php:37
4191
  #: includes/class-wc-vendors-integration.php:109
4192
+ #: templates/dashboard/dashboard.php:14 wpuf-functions.php:1633
4193
  msgid "Posts"
4194
  msgstr ""
4195
 
4196
  #: includes/class-dokan-integration.php:92
4197
  #: includes/class-wc-vendors-integration.php:37
 
4198
  #: includes/class-wcmp-integration.php:37
4199
  msgid "Allow Post"
4200
  msgstr ""
4204
  msgstr ""
4205
 
4206
  #: includes/class-dokan-integration.php:100
4207
+ #: includes/class-wc-vendors-integration.php:45
4208
  #: includes/class-wcmp-integration.php:47
4209
  msgid "Select Post Form"
4210
  msgstr ""
5067
  msgid "Update Profile"
5068
  msgstr ""
5069
 
5070
+ #: includes/free/edit-profile.php:252
5071
  msgid "WPUF Post Lock"
5072
  msgstr ""
5073
 
5074
+ #: includes/free/edit-profile.php:255
5075
  msgid "Lock Post:"
5076
  msgstr ""
5077
 
5078
+ #: includes/free/edit-profile.php:261
5079
  msgid "Lock user from creating new post."
5080
  msgstr ""
5081
 
5082
+ #: includes/free/edit-profile.php:265
5083
  msgid "Lock Reason:"
5084
  msgstr ""
5085
 
5086
+ #: includes/free/edit-profile.php:272
5087
+ msgid "Lock Edit Post:"
5088
+ msgstr ""
5089
+
5090
+ #: includes/free/edit-profile.php:278
5091
+ msgid "Lock user from editing post."
5092
+ msgstr ""
5093
+
5094
+ #: includes/free/edit-profile.php:282
5095
+ msgid "Edit Post Lock Reason:"
5096
+ msgstr ""
5097
+
5098
  #: includes/free/edit-user.php:23
5099
  msgid "User doesn't exists"
5100
  msgstr ""
5783
  msgid "CSV"
5784
  msgstr ""
5785
 
5786
+ #: wpuf-functions.php:821
5787
+ msgid "Directions »"
5788
+ msgstr ""
5789
+
5790
+ #: wpuf-functions.php:1634
5791
  msgid "Edit Profile"
5792
  msgstr ""
5793
 
5794
+ #: wpuf-functions.php:1741
5795
  msgid "United Arab Emirates Dirham"
5796
  msgstr ""
5797
 
5798
+ #: wpuf-functions.php:1742
5799
  msgid "Australian Dollars"
5800
  msgstr ""
5801
 
5802
+ #: wpuf-functions.php:1743
5803
  msgid "Argentine Peso"
5804
  msgstr ""
5805
 
5806
+ #: wpuf-functions.php:1744
5807
  msgid "Bangladeshi Taka"
5808
  msgstr ""
5809
 
5810
+ #: wpuf-functions.php:1745
5811
  msgid "Brazilian Real"
5812
  msgstr ""
5813
 
5814
+ #: wpuf-functions.php:1746
5815
  msgid "Bulgarian Lev"
5816
  msgstr ""
5817
 
5818
+ #: wpuf-functions.php:1747
5819
  msgid "Canadian Dollars"
5820
  msgstr ""
5821
 
5822
+ #: wpuf-functions.php:1748
5823
  msgid "Chilean Peso"
5824
  msgstr ""
5825
 
5826
+ #: wpuf-functions.php:1749
5827
  msgid "Chinese Yuan"
5828
  msgstr ""
5829
 
5830
+ #: wpuf-functions.php:1750
5831
  msgid "Colombian Peso"
5832
  msgstr ""
5833
 
5834
+ #: wpuf-functions.php:1751
5835
  msgid "Czech Koruna"
5836
  msgstr ""
5837
 
5838
+ #: wpuf-functions.php:1752
5839
  msgid "Danish Krone"
5840
  msgstr ""
5841
 
5842
+ #: wpuf-functions.php:1753
5843
  msgid "Dominican Peso"
5844
  msgstr ""
5845
 
5846
+ #: wpuf-functions.php:1754
5847
  msgid "Algerian Dinar"
5848
  msgstr ""
5849
 
5850
+ #: wpuf-functions.php:1755
5851
  msgid "Euros"
5852
  msgstr ""
5853
 
5854
+ #: wpuf-functions.php:1756
5855
  msgid "Hong Kong Dollar"
5856
  msgstr ""
5857
 
5858
+ #: wpuf-functions.php:1757
5859
  msgid "Croatia kuna"
5860
  msgstr ""
5861
 
5862
+ #: wpuf-functions.php:1758
5863
  msgid "Hungarian Forint"
5864
  msgstr ""
5865
 
5866
+ #: wpuf-functions.php:1759
5867
  msgid "Icelandic krona"
5868
  msgstr ""
5869
 
5870
+ #: wpuf-functions.php:1760
5871
  msgid "Indonesia Rupiah"
5872
  msgstr ""
5873
 
5874
+ #: wpuf-functions.php:1761
5875
  msgid "Indian Rupee"
5876
  msgstr ""
5877
 
5878
+ #: wpuf-functions.php:1762
5879
  msgid "Nepali Rupee"
5880
  msgstr ""
5881
 
5882
+ #: wpuf-functions.php:1763
5883
  msgid "Israeli Shekel"
5884
  msgstr ""
5885
 
5886
+ #: wpuf-functions.php:1764
5887
  msgid "Japanese Yen"
5888
  msgstr ""
5889
 
5890
+ #: wpuf-functions.php:1765
5891
  msgid "Lao Kip"
5892
  msgstr ""
5893
 
5894
+ #: wpuf-functions.php:1766
5895
  msgid "South Korean Won"
5896
  msgstr ""
5897
 
5898
+ #: wpuf-functions.php:1767
5899
  msgid "Malaysian Ringgits"
5900
  msgstr ""
5901
 
5902
+ #: wpuf-functions.php:1768
5903
  msgid "Mexican Peso"
5904
  msgstr ""
5905
 
5906
+ #: wpuf-functions.php:1769
5907
  msgid "Nigerian Naira"
5908
  msgstr ""
5909
 
5910
+ #: wpuf-functions.php:1770
5911
  msgid "Norwegian Krone"
5912
  msgstr ""
5913
 
5914
+ #: wpuf-functions.php:1771
5915
  msgid "New Zealand Dollar"
5916
  msgstr ""
5917
 
5918
+ #: wpuf-functions.php:1772
5919
  msgid "Omani Rial"
5920
  msgstr ""
5921
 
5922
+ #: wpuf-functions.php:1773
5923
  msgid "Iranian Rial"
5924
  msgstr ""
5925
 
5926
+ #: wpuf-functions.php:1774
5927
  msgid "Pakistani Rupee"
5928
  msgstr ""
5929
 
5930
+ #: wpuf-functions.php:1775
5931
  msgid "Paraguayan Guaraní"
5932
  msgstr ""
5933
 
5934
+ #: wpuf-functions.php:1776
5935
  msgid "Philippine Pesos"
5936
  msgstr ""
5937
 
5938
+ #: wpuf-functions.php:1777
5939
  msgid "Polish Zloty"
5940
  msgstr ""
5941
 
5942
+ #: wpuf-functions.php:1778
5943
  msgid "Pounds Sterling"
5944
  msgstr ""
5945
 
5946
+ #: wpuf-functions.php:1779
5947
  msgid "Romanian Leu"
5948
  msgstr ""
5949
 
5950
+ #: wpuf-functions.php:1780
5951
  msgid "Russian Ruble"
5952
  msgstr ""
5953
 
5954
+ #: wpuf-functions.php:1781
5955
  msgid "Saudi Riyal"
5956
  msgstr ""
5957
 
5958
+ #: wpuf-functions.php:1782
5959
  msgid "Singapore Dollar"
5960
  msgstr ""
5961
 
5962
+ #: wpuf-functions.php:1783
5963
  msgid "South African rand"
5964
  msgstr ""
5965
 
5966
+ #: wpuf-functions.php:1784
5967
  msgid "Swedish Krona"
5968
  msgstr ""
5969
 
5970
+ #: wpuf-functions.php:1785
5971
  msgid "Swiss Franc"
5972
  msgstr ""
5973
 
5974
+ #: wpuf-functions.php:1786
5975
  msgid "Taiwan New Dollars"
5976
  msgstr ""
5977
 
5978
+ #: wpuf-functions.php:1787
5979
  msgid "Thai Baht"
5980
  msgstr ""
5981
 
5982
+ #: wpuf-functions.php:1788
5983
  msgid "Turkish Lira"
5984
  msgstr ""
5985
 
5986
+ #: wpuf-functions.php:1789
5987
  msgid "US Dollar"
5988
  msgstr ""
5989
 
5990
+ #: wpuf-functions.php:1790
5991
  msgid "Vietnamese Dong"
5992
  msgstr ""
5993
 
5994
+ #: wpuf-functions.php:1791
5995
  msgid "Egyptian Pound"
5996
  msgstr ""
5997
 
5998
+ #: wpuf-functions.php:2620
5999
  msgid "None"
6000
  msgstr ""
6001
 
6101
  msgid "Searching&hellip;"
6102
  msgstr ""
6103
 
6104
+ #: wpuf-functions.php:1245
6105
  msgctxt "tag delimiter"
6106
  msgid ","
6107
  msgstr ""
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: tareq1988, sk.shaikat, rabbii, rafsuntaskin, itowhid06, wedevs
3
  Donate link: https://tareq.co/donate/
4
  Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
- Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
- Stable tag: 3.0.0
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -152,6 +152,29 @@ Try an <a href="https://wedevs.com/in/wpuf/demo">Online Demo</a> of the FREE & P
152
  * Tax in payments
153
  * Vendor registration template for Dokan, WC Marketplace, WC Vendors
154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  Check out the <a href="https://wedevs.com/wp-user-frontend-pro/pricing/">full feature list and pricing plans here.</a> of the Pro version.
156
 
157
  = Checkout Our Other Products =
@@ -230,6 +253,17 @@ redirected to the edit page with that post id. Then you'll see the edit post for
230
 
231
  == Changelog ==
232
 
 
 
 
 
 
 
 
 
 
 
 
233
  = v3.0.0 (4 December, 2018) =
234
 
235
  * **New:** Integrated WC Marketplace plugin: vendor can submit post from their frontend dashboard
3
  Donate link: https://tareq.co/donate/
4
  Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
+ Tested up to: 5.0.2
7
  Requires PHP: 5.4
8
+ Stable tag: 3.0.2
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
152
  * Tax in payments
153
  * Vendor registration template for Dokan, WC Marketplace, WC Vendors
154
 
155
+ <strong>Premium Modules</strong>
156
+
157
+ * [BuddyPress Profile](https://wedevs.com/wp-user-frontend-pro/modules/buddypress/)
158
+ * [Campaign Monitor](https://wedevs.com/wp-user-frontend-pro/modules/campaign-monitor/)
159
+ * [Comments Manager](https://wedevs.com/wp-user-frontend-pro/modules/comments-manager/)
160
+ * [ConvertKit](https://wedevs.com/wp-user-frontend-pro/modules/convertkit/)
161
+ * [GetResponse](https://wedevs.com/wp-user-frontend-pro/modules/getresponse/)
162
+ * [HTML Email Templates](https://wedevs.com/wp-user-frontend-pro/modules/html-email-templates/)
163
+ * [MailChimp](https://wedevs.com/wp-user-frontend-pro/modules/mailchimp/)
164
+ * [MailPoet](https://wedevs.com/wp-user-frontend-pro/modules/mailpoet/)
165
+ * [MailPoet 3](https://wedevs.com/wp-user-frontend-pro/modules/mailpoet-3/)
166
+ * [Paid Memberships Pro](https://wedevs.com/wp-user-frontend-pro/modules/paid-membership-pro-integration/)
167
+ * [Private Messaging](https://wedevs.com/wp-user-frontend-pro/modules/private-messaging/)
168
+ * [QR Code Generator](https://wedevs.com/wp-user-frontend-pro/modules/qr-code-generator/)
169
+ * [Reports](https://wedevs.com/wp-user-frontend-pro/modules/reports/)
170
+ * [SMS Notification](https://wedevs.com/wp-user-frontend-pro/modules/sms-notification/)
171
+ * [Social Login & Registration](https://wedevs.com/wp-user-frontend-pro/modules/social-login/)
172
+ * [Stripe Payment](https://wedevs.com/products/plugins/wp-user-frontend-pro/stripe-gateway/)
173
+ * [User Analytics](https://wedevs.com/wp-user-frontend-pro/modules/user-analytics/)
174
+ * [User Directory](https://wedevs.com/wp-user-frontend-pro/modules/user-directory/)
175
+ * [User Activity](https://wedevs.com/wp-user-frontend-pro/modules/user-activity/)
176
+ * [Zapier](https://wedevs.com/wp-user-frontend-pro/modules/zapier/)
177
+
178
  Check out the <a href="https://wedevs.com/wp-user-frontend-pro/pricing/">full feature list and pricing plans here.</a> of the Pro version.
179
 
180
  = Checkout Our Other Products =
253
 
254
  == Changelog ==
255
 
256
+ = v3.0.2 (1 January, 2019) =
257
+
258
+ * **Feature:** Added post lock feature based on posts and user
259
+ * **Fix:** 'show directions' link doesn't show with the google map on submitted post
260
+ * **Fix:** Subscription pack price not formatting according to the settings
261
+ * **Fix:** Post date is not updating when enable time input option for date field
262
+
263
+ = v3.0.1 (5 December, 2018) =
264
+
265
+ * **Fix:** Image is duplicating
266
+
267
  = v3.0.0 (4 December, 2018) =
268
 
269
  * **New:** Integrated WC Marketplace plugin: vendor can submit post from their frontend dashboard
templates/subscriptions/pack-details.php CHANGED
@@ -20,8 +20,7 @@
20
  <div class="wpuf-sub-amount">
21
 
22
  <?php if ( $billing_amount != '0.00' ) { ?>
23
- <sup class="wpuf-sub-symbol"><?php echo $details_meta['symbol']; ?></sup>
24
- <span class="wpuf-sub-cost"><?php echo $billing_amount; ?></span>
25
  <?php } else { ?>
26
  <span class="wpuf-sub-cost"><?php _e( 'Free', 'wp-user-frontend' ); ?></span>
27
  <?php } ?>
20
  <div class="wpuf-sub-amount">
21
 
22
  <?php if ( $billing_amount != '0.00' ) { ?>
23
+ <span class="wpuf-sub-cost"><?php echo wpuf_format_price( $billing_amount ); ?></span>
 
24
  <?php } else { ?>
25
  <span class="wpuf-sub-cost"><?php _e( 'Free', 'wp-user-frontend' ); ?></span>
26
  <?php } ?>
wpuf-functions.php CHANGED
@@ -811,6 +811,17 @@ function wpuf_show_custom_fields( $content ) {
811
  case 'map':
812
  ob_start();
813
  wpuf_shortcode_map_post($attr['name'], $post->ID);
 
 
 
 
 
 
 
 
 
 
 
814
  $html .= ob_get_clean();
815
  break;
816
 
811
  case 'map':
812
  ob_start();
813
  wpuf_shortcode_map_post($attr['name'], $post->ID);
814
+
815
+ if ( isset( $attr['directions'] ) && $attr['directions'] ) {
816
+ $location = get_post_meta( $post->ID, $attr['name'] , true );
817
+ $def_lat = isset( $location['lat'] ) ? $location['lat'] : 40.7143528;
818
+ $def_long = isset( $location['lng'] ) ? $location['lng'] : -74.0059731;
819
+ ?>
820
+ <div>
821
+ <a class="btn btn-brand btn-sm" href="https://www.google.com/maps/dir/?api=1&amp;destination=<?php echo $def_lat; ?>,<?php echo $def_long; ?>" target="_blank" rel="nofollow external"><?php _e( 'Directions »', 'wp-user-frontend' ); ?></a>
822
+ </div>
823
+ <?php }
824
+
825
  $html .= ob_get_clean();
826
  break;
827
 
wpuf.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP User Frontend
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
- Version: 3.0.0
8
  Author URI: https://tareq.co
9
  License: GPL2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Text Domain: wp-user-frontend
12
  Domain Path: /languages
13
  */
14
 
15
- define( 'WPUF_VERSION', '3.0.0' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
+ Version: 3.0.2
8
  Author URI: https://tareq.co
9
  License: GPL2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
  Domain Path: /languages
13
  */
14
 
15
+ define( 'WPUF_VERSION', '3.0.2' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );