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

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.0
Comparing to
See all releases

Code changes from version 2.9.4 to 3.0.0

assets/css/frontend-forms.css CHANGED
@@ -1213,6 +1213,14 @@ body.rtl ul.wpuf-form li .wpuf-label {
1213
  width: 43%;
1214
  overflow: visible;
1215
  }
 
 
 
 
 
 
 
 
1216
  .wpuf-toc-container .wpuf-fields {
1217
  position: relative;
1218
  }
1213
  width: 43%;
1214
  overflow: visible;
1215
  }
1216
+ .wpuf-wcmp-integration-content .wpuf-dashboard-container .page-head {
1217
+ opacity: 0;
1218
+ margin-bottom: 40px;
1219
+ }
1220
+ .wpuf-wcmp-integration-content .wpuf-dashboard-container table.items-table {
1221
+ width: 100%;
1222
+ margin-bottom: 40px !important;
1223
+ }
1224
  .wpuf-toc-container .wpuf-fields {
1225
  position: relative;
1226
  }
assets/less/frontend-forms.less CHANGED
@@ -1387,6 +1387,20 @@ body.rtl{
1387
  }
1388
  }
1389
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1390
  .wpuf-toc-container {
1391
  .wpuf-fields {
1392
  position: relative;
1387
  }
1388
  }
1389
 
1390
+ .wpuf-wcmp-integration-content{
1391
+ .wpuf-dashboard-container{
1392
+ .page-head{
1393
+ opacity: 0;
1394
+ margin-bottom: 40px;
1395
+ }
1396
+
1397
+ table.items-table{
1398
+ width: 100%;
1399
+ margin-bottom: 40px !important;
1400
+ }
1401
+ }
1402
+ }
1403
+
1404
  .wpuf-toc-container {
1405
  .wpuf-fields {
1406
  position: relative;
class/frontend-dashboard.php CHANGED
@@ -154,6 +154,9 @@ class WPUF_Frontend_Dashboard {
154
 
155
  //redirect
156
  $redirect = add_query_arg( array('msg' => 'deleted'), get_permalink() );
 
 
 
157
  wp_redirect( $redirect );
158
  } else {
159
  echo '<div class="error">' . __( 'You are not the post author. Cheeting huh!', 'wp-user-frontend' ) . '</div>';
154
 
155
  //redirect
156
  $redirect = add_query_arg( array('msg' => 'deleted'), get_permalink() );
157
+
158
+ $redirect = apply_filters( 'wpuf_delete_post_redirect', $redirect );
159
+
160
  wp_redirect( $redirect );
161
  } else {
162
  echo '<div class="error">' . __( 'You are not the post author. Cheeting huh!', 'wp-user-frontend' ) . '</div>';
class/frontend-form-post.php CHANGED
@@ -956,11 +956,15 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
956
 
957
  if ( count( $file_input['value'] ) > 1 ) {
958
  $image_ids = maybe_serialize( $file_input['value'] );
959
- } else {
 
 
960
  $image_ids = $file_input['value'][0];
961
  }
962
 
963
- add_post_meta( $post_id, $file_input['name'], $image_ids );
 
 
964
 
965
  //to track how many files are being uploaded
966
  $file_numbers = 0;
956
 
957
  if ( count( $file_input['value'] ) > 1 ) {
958
  $image_ids = maybe_serialize( $file_input['value'] );
959
+ }
960
+
961
+ if ( count( $file_input['value'] ) == 1 ) {
962
  $image_ids = $file_input['value'][0];
963
  }
964
 
965
+ if ( !empty( $image_ids ) ) {
966
+ add_post_meta( $post_id, $file_input['name'], $image_ids );
967
+ }
968
 
969
  //to track how many files are being uploaded
970
  $file_numbers = 0;
includes/class-dokan-integration.php CHANGED
@@ -3,31 +3,31 @@
3
  if ( ! class_exists( 'WPUF_Dokan_Integration' ) ) :
4
 
5
  /**
6
- *
7
  * WPUF Dokan Integration Class
8
  *
9
  * @since 2.7
10
  */
11
  class WPUF_Dokan_Integration{
12
-
13
  function __construct() {
14
-
15
  add_filter( 'dokan_get_dashboard_nav', array($this, 'add_wpuf_posts_page' ) );
16
  add_action( 'dokan_load_custom_template', array( $this, 'load_wpuf_posts_template' ) );
17
  add_filter( 'dokan_query_var_filter', array( $this, 'register_wpuf_posts_queryvar' ) );
18
  add_filter( 'dokan_settings_fields', array( $this, 'dokan_wpuf_settings' ) );
19
  add_filter( 'wpuf_edit_post_link', array( $this, 'generate_edit_post_link' ) );
20
-
21
  }
22
 
23
  /**
24
  * Insert new URL's to the dashboard navigation bar
25
  *
26
- * @param array $urls
27
- *
28
  * @since 2.7
29
- *
30
- * @return array
31
  */
32
  public function add_wpuf_posts_page( $urls ) {
33
  $access = dokan_get_option( 'allow_wpuf_post', 'dokan_general' );
@@ -47,11 +47,11 @@ class WPUF_Dokan_Integration{
47
  /**
48
  * Load posts template
49
  *
50
- * @param array $query_vars
51
- *
52
  * @since 2.7
53
- *
54
- * @return void
55
  */
56
  public function load_wpuf_posts_template( $query_vars ) {
57
 
@@ -64,11 +64,11 @@ class WPUF_Dokan_Integration{
64
  /**
65
  * Register WPUF query var
66
  *
67
- * @param array $query_vars
68
- *
69
  * @since 2.7
70
- *
71
- * @return void
72
  */
73
  public function register_wpuf_posts_queryvar( $query_vars ) {
74
  $query_vars[] = 'posts';
@@ -79,11 +79,11 @@ class WPUF_Dokan_Integration{
79
  /**
80
  * Dokan settings for WPUF integration
81
  *
82
- * @param array $settings_fields
83
- *
84
  * @since 2.7
85
- *
86
- * @return array $settings_fields
87
  */
88
  public function dokan_wpuf_settings( $settings_fields ) {
89
 
@@ -111,10 +111,10 @@ class WPUF_Dokan_Integration{
111
  * Get all the post forms
112
  *
113
  * @param str $post_type
114
- *
115
  * @since 2.7
116
- *
117
- * @return array $post_forms
118
  */
119
  public function get_post_forms( $post_type='post') {
120
  $post_forms = array();
@@ -122,13 +122,14 @@ class WPUF_Dokan_Integration{
122
  $args = array(
123
  'post_type' => 'wpuf_forms',
124
  'post_status' => 'publish',
 
125
  );
126
 
127
  $form_posts = get_posts( $args );
128
 
129
  foreach ($form_posts as $form) {
130
- $form_settings = wpuf_get_form_settings($form->ID);
131
- $form_post_type = $form_settings['post_type'];
132
 
133
  if ( $form_post_type == $post_type ) {
134
  $post_forms[$form->ID] = $form->post_title;
@@ -142,10 +143,10 @@ class WPUF_Dokan_Integration{
142
  * Generate edit post link
143
  *
144
  * @param str $url
145
- *
146
  * @since 2.7
147
- *
148
- * @return str $url
149
  */
150
  public function generate_edit_post_link( $url ) {
151
  global $post;
@@ -154,11 +155,11 @@ class WPUF_Dokan_Integration{
154
  $dashboard = (int) dokan_get_option( 'dashboard', 'dokan_pages' );
155
 
156
  if ( is_page( $dashboard ) ) {
157
- $url = add_query_arg(
158
  array(
159
  'action' => 'edit-post',
160
  'pid' => $post->ID
161
- ),
162
  $posts_page_url );
163
  }
164
 
3
  if ( ! class_exists( 'WPUF_Dokan_Integration' ) ) :
4
 
5
  /**
6
+ *
7
  * WPUF Dokan Integration Class
8
  *
9
  * @since 2.7
10
  */
11
  class WPUF_Dokan_Integration{
12
+
13
  function __construct() {
14
+
15
  add_filter( 'dokan_get_dashboard_nav', array($this, 'add_wpuf_posts_page' ) );
16
  add_action( 'dokan_load_custom_template', array( $this, 'load_wpuf_posts_template' ) );
17
  add_filter( 'dokan_query_var_filter', array( $this, 'register_wpuf_posts_queryvar' ) );
18
  add_filter( 'dokan_settings_fields', array( $this, 'dokan_wpuf_settings' ) );
19
  add_filter( 'wpuf_edit_post_link', array( $this, 'generate_edit_post_link' ) );
20
+
21
  }
22
 
23
  /**
24
  * Insert new URL's to the dashboard navigation bar
25
  *
26
+ * @param array $urls
27
+ *
28
  * @since 2.7
29
+ *
30
+ * @return array
31
  */
32
  public function add_wpuf_posts_page( $urls ) {
33
  $access = dokan_get_option( 'allow_wpuf_post', 'dokan_general' );
47
  /**
48
  * Load posts template
49
  *
50
+ * @param array $query_vars
51
+ *
52
  * @since 2.7
53
+ *
54
+ * @return void
55
  */
56
  public function load_wpuf_posts_template( $query_vars ) {
57
 
64
  /**
65
  * Register WPUF query var
66
  *
67
+ * @param array $query_vars
68
+ *
69
  * @since 2.7
70
+ *
71
+ * @return void
72
  */
73
  public function register_wpuf_posts_queryvar( $query_vars ) {
74
  $query_vars[] = 'posts';
79
  /**
80
  * Dokan settings for WPUF integration
81
  *
82
+ * @param array $settings_fields
83
+ *
84
  * @since 2.7
85
+ *
86
+ * @return array $settings_fields
87
  */
88
  public function dokan_wpuf_settings( $settings_fields ) {
89
 
111
  * Get all the post forms
112
  *
113
  * @param str $post_type
114
+ *
115
  * @since 2.7
116
+ *
117
+ * @return array $post_forms
118
  */
119
  public function get_post_forms( $post_type='post') {
120
  $post_forms = array();
122
  $args = array(
123
  'post_type' => 'wpuf_forms',
124
  'post_status' => 'publish',
125
+ 'numberposts' => -1,
126
  );
127
 
128
  $form_posts = get_posts( $args );
129
 
130
  foreach ($form_posts as $form) {
131
+ $form_settings = wpuf_get_form_settings($form->ID);
132
+ $form_post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : '';
133
 
134
  if ( $form_post_type == $post_type ) {
135
  $post_forms[$form->ID] = $form->post_title;
143
  * Generate edit post link
144
  *
145
  * @param str $url
146
+ *
147
  * @since 2.7
148
+ *
149
+ * @return str $url
150
  */
151
  public function generate_edit_post_link( $url ) {
152
  global $post;
155
  $dashboard = (int) dokan_get_option( 'dashboard', 'dokan_pages' );
156
 
157
  if ( is_page( $dashboard ) ) {
158
+ $url = add_query_arg(
159
  array(
160
  'action' => 'edit-post',
161
  'pid' => $post->ID
162
+ ),
163
  $posts_page_url );
164
  }
165
 
includes/class-wc-vendors-integration.php ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'WPUF_WC_Vendors_Integration' ) ) :
4
+
5
+ /**
6
+ *
7
+ * WC Vendors Integration Class
8
+ *
9
+ * @since 3.0
10
+ */
11
+ class WPUF_WC_Vendors_Integration{
12
+
13
+ function __construct() {
14
+ add_action( 'wcvendors_after_links', array( $this, 'add_wpuf_posts_page' ) );
15
+ add_action( 'wcvendors_after_dashboard', array( $this, 'after_dashboard' ) );
16
+
17
+ add_filter( 'wcvendors_get_settings_general', array( $this, 'add_wpuf_options' ), 10, 2 );
18
+ add_filter( 'wpuf_edit_post_link', array( $this, 'generate_edit_post_link' ) );
19
+ add_filter( 'wpuf_edit_post_redirect', array( $this, 'update_edit_post_redirect_url' ), 10, 4 );
20
+ add_filter( 'wpuf_delete_post_redirect', array( $this, 'update_delete_post_redirect_url' ) );
21
+ }
22
+
23
+ /**
24
+ * WC Vendors settings for WPUF integration
25
+ *
26
+ * @param array $settings_fields
27
+ *
28
+ * @since 3.0
29
+ *
30
+ * @return array $settings_fields
31
+ */
32
+ public function add_wpuf_options( $settings, $current_section ) {
33
+ $last_option = end($settings);
34
+ array_pop($settings);
35
+
36
+ $settings[] = array(
37
+ 'title' => __('Allow Post', 'wp-user-frontend'),
38
+ 'desc' => __('If checked, vendor can submit post from dashboard area.', 'wp-user-frontend'),
39
+ 'id' => 'allow_wcvendors_wpuf_post',
40
+ 'default' => 'no',
41
+ 'type' => 'checkbox',
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',
49
+ 'class' => 'wc-enhanced-select',
50
+ 'options' => $this->get_post_forms()
51
+ );
52
+
53
+ array_push($settings, $last_option);
54
+
55
+ return $settings;
56
+ }
57
+
58
+ /**
59
+ * Get all the post forms
60
+ *
61
+ * @param str $post_type
62
+ *
63
+ * @since 3.0
64
+ *
65
+ * @return array $post_forms
66
+ */
67
+ public function get_post_forms( $post_type='post' ) {
68
+ $post_forms = array();
69
+
70
+ $args = array(
71
+ 'post_type' => 'wpuf_forms',
72
+ 'post_status' => 'publish',
73
+ 'numberposts' => -1,
74
+ );
75
+
76
+ $form_posts = get_posts( $args );
77
+
78
+ foreach ($form_posts as $form) {
79
+ $form_settings = wpuf_get_form_settings($form->ID);
80
+ $form_post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : '';
81
+
82
+ if ( $form_post_type == $post_type ) {
83
+ $post_forms[$form->ID] = $form->post_title;
84
+ }
85
+ }
86
+
87
+ return $post_forms;
88
+ }
89
+
90
+ /**
91
+ * Insert new URL's to the frontend dashboard navigation bar
92
+ *
93
+ * @param array $urls
94
+ *
95
+ * @since 3.0
96
+ *
97
+ * @return array
98
+ */
99
+ public function add_wpuf_posts_page() {
100
+ $allow_wpuf_post = get_option( 'allow_wcvendors_wpuf_post', 'no' );
101
+
102
+ if ( $allow_wpuf_post == 'yes' ) {
103
+ $dashboard_url = get_permalink(get_option( 'wcvendors_vendor_dashboard_page_id' ) );
104
+ $post_page_url = add_query_arg( array(
105
+ 'action' => 'post-listing',
106
+ ), $dashboard_url );
107
+
108
+ $output = '<a href="'. $post_page_url .'" class="button">';
109
+ $output .= __( 'Posts', 'wp-user-frontend' );
110
+ $output .= '</a>';
111
+
112
+ echo $output;
113
+ }
114
+ }
115
+
116
+ /**
117
+ * Include requrired template & load additional style, script after dashboard
118
+ */
119
+ public function after_dashboard() {
120
+ $action = isset($_GET['action']) ? $_GET['action'] : '';
121
+
122
+ if ( $action == 'post-listing' || $action == 'new-post' || $action == 'edit-post' || $action == 'del' ) {
123
+
124
+ require_once WPUF_ROOT . '/templates/wc-vendors/posts.php';
125
+
126
+ ?>
127
+ <script type="text/javascript">
128
+ var WPUFContent = document.querySelector('.wpuf-wc-vendors-submit-post-page');
129
+ var WCVendorArea = WPUFContent.parentElement;
130
+ WCVendorArea.className += " hide-if-wpuf-page";
131
+ </script>
132
+ <style type="text/css">
133
+ .table-vendor-sales-report,
134
+ .wpuf-wc-vendors-submit-post-page .page-head,
135
+ .hide-if-wpuf-page h2,
136
+ .hide-if-wpuf-page>form{
137
+ display: none;
138
+ }
139
+
140
+ .wpuf-wc-vendors-submit-post-page .pull-right{
141
+ float: right;
142
+ }
143
+
144
+ .wpuf-wc-vendors-submit-post-page .post_count{
145
+ margin-bottom: 30px;
146
+ margin-top: 20px;
147
+ }
148
+
149
+ .wpuf-wc-vendors-submit-post-page .wpuf-add-post-button{
150
+ background: #1a1a1a;
151
+ border: 0;
152
+ border-radius: 2px;
153
+ color: #fff;
154
+ font-family: Montserrat, "Helvetica Neue", sans-serif;
155
+ font-weight: 700;
156
+ letter-spacing: 0.046875em;
157
+ line-height: 1;
158
+ padding: 0.84375em 0.875em 0.78125em;
159
+ text-transform: uppercase;
160
+ }
161
+ .wpuf-wc-vendors-submit-post-page .wpuf-add-post-button:hover,
162
+ .wpuf-wc-vendors-submit-post-page .wpuf-add-post-button:focus,
163
+ .wpuf-wc-vendors-submit-post-page .wpuf-add-post-button:active{
164
+ background: #007acc;
165
+ }
166
+ </style>
167
+ <?php
168
+ }
169
+ }
170
+
171
+ /**
172
+ * Generate edit post link
173
+ *
174
+ * @param str $url
175
+ *
176
+ * @since 3.0
177
+ *
178
+ * @return str $url
179
+ */
180
+ public function generate_edit_post_link( $url ) {
181
+ global $post;
182
+
183
+ $posts_page_url = get_permalink(get_option( 'wcvendors_vendor_dashboard_page_id' ) );
184
+
185
+ if ( is_page( get_option( 'wcvendors_vendor_dashboard_page_id' ) ) ) {
186
+ $url = add_query_arg(
187
+ array(
188
+ 'action' => 'edit-post',
189
+ 'pid' => $post->ID
190
+ ),
191
+ $posts_page_url
192
+ );
193
+ }
194
+
195
+ return $url;
196
+ }
197
+
198
+ /**
199
+ * Redirect user after editing post from vendor dashboard
200
+ *
201
+ */
202
+ public function update_edit_post_redirect_url( $response, $post_id, $form_id, $form_settings ) {
203
+ $user = wp_get_current_user();
204
+ $role = ( array ) $user->roles;
205
+ $selected_form = get_option( 'wcvendors_wpuf_allowed_post_form', '' );
206
+
207
+ if ( $role[0] == 'vendor' && $form_id == $selected_form && $form_settings['edit_redirect_to'] == 'same' ) {
208
+ $post_page_url = get_permalink(get_option( 'wcvendors_vendor_dashboard_page_id' ) );
209
+
210
+ $redirect_url = add_query_arg(
211
+ array(
212
+ 'action' => 'edit-post',
213
+ 'pid' => $post_id,
214
+ '_wpnonce' => wp_create_nonce( 'wpuf_edit' ),
215
+ 'msg' => 'post_updated'
216
+ ),
217
+ $post_page_url
218
+ );
219
+
220
+ $response['redirect_to'] = $redirect_url;
221
+ }
222
+
223
+ return $response;
224
+ }
225
+
226
+ /**
227
+ * Redirect user after deleting post from vendor dashboard
228
+ *
229
+ */
230
+ public function update_delete_post_redirect_url( $redirect_url ) {
231
+ if ( is_page( get_option( 'wcvendors_vendor_dashboard_page_id' ) ) ) {
232
+ $post_page_url = get_permalink(get_option( 'wcvendors_vendor_dashboard_page_id' ) );
233
+
234
+ $redirect_url = add_query_arg(
235
+ array(
236
+ 'action' => 'post-listing',
237
+ 'msg' => 'deleted'
238
+ ),
239
+ $post_page_url
240
+ );
241
+ }
242
+
243
+ return $redirect_url;
244
+ }
245
+
246
+ }
247
+
248
+ endif;
includes/class-wcmp-integration.php ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'WPUF_WCMp_Integration' ) ) :
4
+
5
+ /**
6
+ *
7
+ * WC Marketplace Integration Class
8
+ *
9
+ * @since 3.0
10
+ */
11
+ class WPUF_WCMp_Integration{
12
+
13
+ function __construct() {
14
+ add_filter( 'wcmp_general_tab_filds', array( $this, 'add_wpuf_options' ) );
15
+ add_filter( 'settings_general_tab_new_input', array( $this, 'option_fields_sanitize' ), 10, 2 );
16
+ add_filter( 'settings_vendor_general_tab_options', array( $this, 'add_dashboard_endpoints' ) );
17
+ add_filter( 'wcmp_vendor_dashboard_nav', array( $this, 'add_wpuf_posts_page' ) );
18
+ add_filter( 'wcmp_endpoints_query_vars', array( $this, 'add_query_var' ) );
19
+ add_filter( 'settings_vendor_general_tab_new_input', array( $this, 'endpoint_option_fields_sanitize' ), 10, 2 );
20
+ add_action( 'wcmp_vendor_dashboard_submit-post_endpoint', array( $this, 'wcmp_vendor_dashboard_submit_post_endpoint' ) );
21
+ add_filter( 'wpuf_edit_post_link', array( $this, 'generate_edit_post_link' ) );
22
+ add_filter( 'wpuf_edit_post_redirect', array( $this, 'update_edit_post_redirect_url' ), 10, 4 );
23
+ add_filter( 'wpuf_delete_post_redirect', array( $this, 'update_delete_post_redirect_url' ) );
24
+ }
25
+
26
+ /**
27
+ * WC Marketplace settings for WPUF integration
28
+ *
29
+ * @param array $settings_fields
30
+ *
31
+ * @since 3.0
32
+ *
33
+ * @return array $settings_fields
34
+ */
35
+ public function add_wpuf_options( $settings_fields ) {
36
+ $settings_fields['allow_wpuf_post'] = array(
37
+ 'title' => __('Allow Post', 'wp-user-frontend'),
38
+ 'type' => 'checkbox',
39
+ 'id' => 'allow_wpuf_post',
40
+ 'label_for' => 'allow_wpuf_post',
41
+ 'text' => __('If checked, vendor can submit post from dashboard area.', 'wp-user-frontend'),
42
+ 'name' => 'allow_wpuf_post',
43
+ 'value' => 'yes'
44
+ );
45
+
46
+ $settings_fields['wpuf_post_forms'] = array(
47
+ 'title' => __('Select Post Form', 'wp-user-frontend'),
48
+ 'type' => 'select',
49
+ 'id' => 'wpuf_post_forms',
50
+ 'name' => 'wpuf_post_forms',
51
+ 'label_for' => 'wpuf_post_forms',
52
+ 'desc' => stripslashes( __('Select a post form that will show on the vendor dashboard.', 'wp-user-frontend') ),
53
+ 'options' => $this->get_post_forms()
54
+ );
55
+
56
+ return $settings_fields;
57
+ }
58
+
59
+ /**
60
+ * Sanitize option fields
61
+ *
62
+ * @param array $new_input, $input
63
+ *
64
+ * @since 3.0
65
+ *
66
+ * @return array $new_input
67
+ */
68
+ public function option_fields_sanitize( $new_input, $input ) {
69
+ if ( isset($input['allow_wpuf_post']) ) {
70
+ $new_input['allow_wpuf_post'] = sanitize_text_field($input['allow_wpuf_post']);
71
+ }
72
+
73
+ if( isset($input['wpuf_post_forms']) ){
74
+ $new_input['wpuf_post_forms'] = $input['wpuf_post_forms'];
75
+ }
76
+
77
+ return $new_input;
78
+ }
79
+
80
+ /**
81
+ * Add vendor dashboard endpoint for submit post menu
82
+ *
83
+ */
84
+ public function add_dashboard_endpoints( $settings_tab_options ) {
85
+ $settings_tab_options['sections']['wcmp_vendor_general_settings_endpoint_ssection']['fields']['wcmp_vendor_submit_post_endpoint'] = array(
86
+ 'title' => __('Vendor Submit Post', 'wp-user-frontend'),
87
+ 'type' => 'text',
88
+ 'id' => 'wcmp_vendor_submit_post_endpoint',
89
+ 'label_for' => 'wcmp_vendor_submit_post_endpoint',
90
+ 'name' => 'wcmp_vendor_submit_post_endpoint',
91
+ 'hints' => __('Set endpoint for vendor submit post page', 'wp-user-frontend'),
92
+ 'placeholder' => 'submit-post'
93
+ );
94
+
95
+ return $settings_tab_options;
96
+ }
97
+
98
+ /**
99
+ * Update option field data
100
+ *
101
+ */
102
+ public function endpoint_option_fields_sanitize( $new_input, $input ) {
103
+ if (isset($input['wcmp_vendor_submit_post_endpoint']) && !empty($input['wcmp_vendor_submit_post_endpoint'])) {
104
+ $new_input['wcmp_vendor_submit_post_endpoint'] = sanitize_text_field($input['wcmp_vendor_submit_post_endpoint']);
105
+ }
106
+
107
+ return $new_input;
108
+ }
109
+
110
+ /**
111
+ * Template for vendor submit post page
112
+ *
113
+ */
114
+ public function wcmp_vendor_dashboard_submit_post_endpoint() {
115
+ global $WCMp, $wp;
116
+
117
+ require_once WPUF_ROOT . '/templates/wc-marketplace/posts.php';
118
+ }
119
+
120
+ /**
121
+ * Insert new URL's to the dashboard navigation bar
122
+ *
123
+ * @param array $urls
124
+ *
125
+ * @since 2.7
126
+ *
127
+ * @return array
128
+ */
129
+ public function add_wpuf_posts_page( $vendor_nav ) {
130
+ $vendor_nav['submit-post'] = array(
131
+ 'label' => __( 'Submit Post', 'wp-user-frontend' ),
132
+ 'url' => wcmp_get_vendor_dashboard_endpoint_url( get_wcmp_vendor_settings( 'wcmp_vendor_submit_post_endpoint', 'vendor', 'general', 'submit-post' ) ),
133
+ 'capability' => apply_filters( 'wcmp_vendor_dashboard_menu_vendor_submit_post_capability', true ),
134
+ 'position' => 90,
135
+ 'submenu' => array(),
136
+ 'link_target' => '_self',
137
+ 'nav_icon' => 'wcmp-font ico-plus-icon'
138
+ );
139
+
140
+ return $vendor_nav;
141
+ }
142
+
143
+ /**
144
+ * Add query var for vendor submit post page
145
+ *
146
+ */
147
+ public function add_query_var( $query_vars ) {
148
+ $query_vars['submit-post'] = array(
149
+ 'label' => __('Submit Post', 'wp-user-frontend'),
150
+ 'endpoint' => get_wcmp_vendor_settings('wcmp_vendor_submit_post_endpoint', 'vendor', 'general', 'submit-post')
151
+ );
152
+
153
+ return $query_vars;
154
+ }
155
+
156
+ /**
157
+ * Get all the post forms
158
+ *
159
+ * @param str $post_type
160
+ *
161
+ * @since 3.0
162
+ *
163
+ * @return array $post_forms
164
+ */
165
+ public function get_post_forms( $post_type='post' ) {
166
+ $post_forms = array();
167
+
168
+ $args = array(
169
+ 'post_type' => 'wpuf_forms',
170
+ 'post_status' => 'publish',
171
+ 'numberposts' => -1,
172
+ );
173
+
174
+ $form_posts = get_posts( $args );
175
+
176
+ foreach ($form_posts as $form) {
177
+ $form_settings = wpuf_get_form_settings($form->ID);
178
+ $form_post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : '';
179
+
180
+ if ( $form_post_type == $post_type ) {
181
+ $post_forms[$form->ID] = $form->post_title;
182
+ }
183
+ }
184
+
185
+ return $post_forms;
186
+ }
187
+
188
+ /**
189
+ * Generate edit post link
190
+ *
191
+ * @param str $url
192
+ *
193
+ * @since 3.0
194
+ *
195
+ * @return str $url
196
+ */
197
+ public function generate_edit_post_link( $url ) {
198
+ global $post;
199
+
200
+ $posts_page_url = wcmp_get_vendor_dashboard_endpoint_url( get_wcmp_vendor_settings( 'wcmp_vendor_submit_post_endpoint', 'vendor', 'general', 'submit-post' ) );
201
+
202
+ if ( is_vendor_dashboard() ) {
203
+ $url = add_query_arg(
204
+ array(
205
+ 'action' => 'edit-post',
206
+ 'pid' => $post->ID
207
+ ),
208
+ $posts_page_url
209
+ );
210
+ }
211
+
212
+ return $url;
213
+ }
214
+
215
+ /**
216
+ * Redirect user after editing post from vendor dashboard
217
+ *
218
+ */
219
+ public function update_edit_post_redirect_url( $response, $post_id, $form_id, $form_settings ) {
220
+ $user = wp_get_current_user();
221
+ $role = ( array ) $user->roles;
222
+ $selected_form = (get_wcmp_vendor_settings('wpuf_post_forms', 'general')) ? get_wcmp_vendor_settings('wpuf_post_forms', 'general') : '';
223
+
224
+ if ( $role[0] == 'dc_vendor' && $form_id == $selected_form && $form_settings['edit_redirect_to'] == 'same' ) {
225
+ $post_page_url = wcmp_get_vendor_dashboard_endpoint_url( get_wcmp_vendor_settings( 'wcmp_vendor_submit_post_endpoint', 'vendor', 'general', 'submit-post' ) );
226
+
227
+ $redirect_url = add_query_arg(
228
+ array(
229
+ 'action' => 'edit-post',
230
+ 'pid' => $post_id,
231
+ '_wpnonce' => wp_create_nonce( 'wpuf_edit' ),
232
+ 'msg' => 'post_updated'
233
+ ),
234
+ $post_page_url
235
+ );
236
+
237
+ $response['redirect_to'] = $redirect_url;
238
+ }
239
+
240
+ return $response;
241
+ }
242
+
243
+ /**
244
+ * Redirect user after deleting post from vendor dashboard
245
+ *
246
+ */
247
+ public function update_delete_post_redirect_url( $redirect_url ) {
248
+ if ( is_vendor_dashboard() ) {
249
+ $post_page_url = wcmp_get_vendor_dashboard_endpoint_url( get_wcmp_vendor_settings( 'wcmp_vendor_submit_post_endpoint', 'vendor', 'general', 'submit-post' ) );
250
+
251
+ $redirect_url = add_query_arg(
252
+ array(
253
+ 'msg' => 'deleted'
254
+ ),
255
+ $post_page_url
256
+ );
257
+ }
258
+
259
+ return $redirect_url;
260
+ }
261
+ }
262
+
263
+ endif;
languages/wp-user-frontend.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP User Frontend 2.9.4\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2018-11-20 09:34:11+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -153,7 +153,7 @@ msgstr ""
153
  #: admin/post-forms-list-table.php:344 admin/settings-options.php:112
154
  #: admin/settings-options.php:123 admin/settings-options.php:215
155
  #: admin/settings-options.php:226 admin/template.php:70
156
- #: class/asset-loader.php:49 includes/free/form-element.php:477 wpuf.php:515
157
  msgid "Yes"
158
  msgstr ""
159
 
@@ -167,7 +167,7 @@ msgstr ""
167
  #: admin/post-forms-list-table.php:345 admin/settings-options.php:113
168
  #: admin/settings-options.php:124 admin/settings-options.php:216
169
  #: admin/settings-options.php:227 admin/template.php:71
170
- #: class/asset-loader.php:50 includes/free/form-element.php:478 wpuf.php:516
171
  msgid "No"
172
  msgstr ""
173
 
@@ -554,12 +554,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:525
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:526
563
  msgid "No, cancel it"
564
  msgstr ""
565
 
@@ -1899,21 +1899,31 @@ msgid "Contact Support"
1899
  msgstr ""
1900
 
1901
  #: admin/html/whats-new.php:8
1902
- msgid "The Events Calendar Integration Form"
1903
  msgstr ""
1904
 
1905
  #: admin/html/whats-new.php:10
1906
  msgid ""
 
 
 
 
 
 
 
 
 
 
1907
  "Now admin can allow users to create event from the frontend. Currently WPUF "
1908
  "has a one click pre-build event form that has been integrated with The "
1909
  "Events Calendar plugin"
1910
  msgstr ""
1911
 
1912
- #: admin/html/whats-new.php:13
1913
  msgid "Post Submission Facility From Account Page"
1914
  msgstr ""
1915
 
1916
- #: admin/html/whats-new.php:15
1917
  msgid ""
1918
  "On the frontend account page, added a new menu item named <b>Submit "
1919
  "Post</b>. Now admin can allow users to submit post from their default "
@@ -1922,504 +1932,504 @@ msgid ""
1922
  "you can assign any post form that will use to submit posts."
1923
  msgstr ""
1924
 
1925
- #: admin/html/whats-new.php:18
1926
  msgid "Login/Lost Password Link Under Registration Form"
1927
  msgstr ""
1928
 
1929
- #: admin/html/whats-new.php:20
1930
  msgid "Added Login/Lost Password link under registration form"
1931
  msgstr ""
1932
 
1933
- #: admin/html/whats-new.php:29
1934
  msgid "Added drag and drop image ordering on image upload"
1935
  msgstr ""
1936
 
1937
- #: admin/html/whats-new.php:31
1938
  msgid ""
1939
  "Now frontend users can drag & drop the images/files to change the order "
1940
  "while uploading."
1941
  msgstr ""
1942
 
1943
- #: admin/html/whats-new.php:34
1944
  msgid "Added reCAPTCHA field in login form"
1945
  msgstr ""
1946
 
1947
- #: admin/html/whats-new.php:36
1948
  msgid ""
1949
  "Admin has the option to show reCAPTCHA field in login form. Check the "
1950
  "related settings from <strong>User Frontend > Settings > "
1951
  "Login/Registration</strong>"
1952
  msgstr ""
1953
 
1954
- #: admin/html/whats-new.php:39
1955
  msgid "Added preview option in forms"
1956
  msgstr ""
1957
 
1958
- #: admin/html/whats-new.php:41
1959
  msgid ""
1960
  "You can see a nice <strong>Preview</strong> button with <strong>Save "
1961
  "Form</strong> button, admin can take a quick look of the form without using "
1962
  "shortcode"
1963
  msgstr ""
1964
 
1965
- #: admin/html/whats-new.php:44
1966
  msgid "Fixed hiding “Select Image” button while uploading multiple images."
1967
  msgstr ""
1968
 
1969
- #: admin/html/whats-new.php:46
1970
  msgid ""
1971
  "The upload button will not be hidden until the user selects max number of "
1972
  "files "
1973
  msgstr ""
1974
 
1975
- #: admin/html/whats-new.php:49
1976
  msgid "Added form limit notice before form submission"
1977
  msgstr ""
1978
 
1979
- #: admin/html/whats-new.php:51
1980
  msgid ""
1981
  "Limit notice message was showing after submission, now it is showing when "
1982
  "rendering the form"
1983
  msgstr ""
1984
 
1985
- #: admin/html/whats-new.php:54
1986
  msgid "Fixed: default post category not saving"
1987
  msgstr ""
1988
 
1989
- #: admin/html/whats-new.php:56
1990
  msgid ""
1991
  "From the form <strong>Settings > Post Settings</strong>, default post "
1992
  "category options were not saving. Now, it's fixed."
1993
  msgstr ""
1994
 
1995
- #: admin/html/whats-new.php:59
1996
  msgid ""
1997
  "WPUF dashboard shortcode with form_id attribute was not showing posts "
1998
  "properly"
1999
  msgstr ""
2000
 
2001
- #: admin/html/whats-new.php:61
2002
  msgid ""
2003
  "Now you can list posts on the frontend by using <strong>form_id<strong/> "
2004
  "attribute with <strong>[wpuf_dashboard]</strong> shortcode"
2005
  msgstr ""
2006
 
2007
- #: admin/html/whats-new.php:70
2008
  msgid "Changed text domain to `wp-user-frontend` from `wpuf` "
2009
  msgstr ""
2010
 
2011
- #: admin/html/whats-new.php:72
2012
  msgid ""
2013
  "If you are using other language than English. Please <b>rename</b> your "
2014
  "<i>.po and .mo </i> files to `wp-user-frontend_` from `wpuf_` <br> This "
2015
  "change was made to support translations from translate.wordpress.org"
2016
  msgstr ""
2017
 
2018
- #: admin/html/whats-new.php:75
2019
  msgid "Added WP User Frontend Data export and erase functionality."
2020
  msgstr ""
2021
 
2022
- #: admin/html/whats-new.php:77
2023
  msgid "Added functionality to export WP User Frontend Data to comply with GDPR."
2024
  msgstr ""
2025
 
2026
- #: admin/html/whats-new.php:80
2027
  msgid "Added billing address customizer."
2028
  msgstr ""
2029
 
2030
- #: admin/html/whats-new.php:82
2031
  msgid "Added customizer options for billing address in payment page."
2032
  msgstr ""
2033
 
2034
- #: admin/html/whats-new.php:85
2035
  msgid "Make the payment page responsive."
2036
  msgstr ""
2037
 
2038
- #: admin/html/whats-new.php:87
2039
  msgid "Some css adjustments are made in payment page to make it responsive."
2040
  msgstr ""
2041
 
2042
- #: admin/html/whats-new.php:90
2043
  msgid "Fixed image upload issue in Safari."
2044
  msgstr ""
2045
 
2046
- #: admin/html/whats-new.php:92
2047
  msgid "Images were not showing after upload in safari, it is fixed now."
2048
  msgstr ""
2049
 
2050
- #: admin/html/whats-new.php:95
2051
  msgid "Post update issue after updating or removing post images."
2052
  msgstr ""
2053
 
2054
- #: admin/html/whats-new.php:97
2055
  msgid ""
2056
  "Posts cannot be updated after updating or removing post images, it is fixed "
2057
  "now."
2058
  msgstr ""
2059
 
2060
- #: admin/html/whats-new.php:106
2061
  msgid "Allow overriding form input styles using theme styling."
2062
  msgstr ""
2063
 
2064
- #: admin/html/whats-new.php:108
2065
  msgid "Overriding form input styles using theme style is now possible."
2066
  msgstr ""
2067
 
2068
- #: admin/html/whats-new.php:111
2069
  msgid "Fixed Auto Login after registration."
2070
  msgstr ""
2071
 
2072
- #: admin/html/whats-new.php:113
2073
  msgid "Auto Login after registration was not working is fixed now."
2074
  msgstr ""
2075
 
2076
- #: admin/html/whats-new.php:116
2077
  msgid "Fixed fallback cost calculation"
2078
  msgstr ""
2079
 
2080
- #: admin/html/whats-new.php:118
2081
  msgid "Fallback cost calculation was inaccurate for some cases, it is fixed now."
2082
  msgstr ""
2083
 
2084
- #: admin/html/whats-new.php:121
2085
  msgid "Removal of subscription from User Profile gets reverted if updated"
2086
  msgstr ""
2087
 
2088
- #: admin/html/whats-new.php:123
2089
  msgid "User subscription deletion gets reverted if updated is fixed."
2090
  msgstr ""
2091
 
2092
- #: admin/html/whats-new.php:126
2093
  msgid "Show Free pack users in subscribers list."
2094
  msgstr ""
2095
 
2096
- #: admin/html/whats-new.php:128
2097
  msgid "Free pack users were not showing in subscribers list, now they will."
2098
  msgstr ""
2099
 
2100
- #: admin/html/whats-new.php:137
2101
  msgid "WP User Frontend Guten Block is added"
2102
  msgstr ""
2103
 
2104
- #: admin/html/whats-new.php:139
2105
  msgid ""
2106
  "WPUF Form Block is now available to be used within gutenberg editor with "
2107
  "preview of the form. "
2108
  msgstr ""
2109
 
2110
- #: admin/html/whats-new.php:142
2111
  msgid "Advanced Custom Fields plugin compatibility"
2112
  msgstr ""
2113
 
2114
- #: admin/html/whats-new.php:144
2115
  msgid "Now all your ACF fields can be used within WPUF Post forms. "
2116
  msgstr ""
2117
 
2118
- #: admin/html/whats-new.php:147
2119
  msgid "Taxonomy Terms not showing for custom post types"
2120
  msgstr ""
2121
 
2122
- #: admin/html/whats-new.php:149
2123
  msgid ""
2124
  "Fixed an issue with taxonomy terms not appearing for Custom Post types "
2125
  "within Form Settings and Dashboard Post Listing"
2126
  msgstr ""
2127
 
2128
- #: admin/html/whats-new.php:152
2129
  msgid "Various other code optimizations"
2130
  msgstr ""
2131
 
2132
- #: admin/html/whats-new.php:154 admin/html/whats-new.php:211
2133
  msgid "Code structure organization and optimization for better performance"
2134
  msgstr ""
2135
 
2136
- #: admin/html/whats-new.php:163
2137
  msgid "WoooCommerce billing address Sync"
2138
  msgstr ""
2139
 
2140
- #: admin/html/whats-new.php:165
2141
  msgid ""
2142
  "If an existing customer has previously set his billing address, that will "
2143
  "be imported into WPUF Billing address "
2144
  msgstr ""
2145
 
2146
- #: admin/html/whats-new.php:168
2147
  msgid "Trial subscription message not showing properly"
2148
  msgstr ""
2149
 
2150
- #: admin/html/whats-new.php:170
2151
  msgid "Subscriptions with Trial now shows trial notices"
2152
  msgstr ""
2153
 
2154
- #: admin/html/whats-new.php:173
2155
  msgid "Reset email Key not working"
2156
  msgstr ""
2157
 
2158
- #: admin/html/whats-new.php:175
2159
  msgid "Reset Email key was not working in some cases"
2160
  msgstr ""
2161
 
2162
- #: admin/html/whats-new.php:178
2163
  msgid "Post count not showing on the frontend dashboard"
2164
  msgstr ""
2165
 
2166
- #: admin/html/whats-new.php:180
2167
  msgid ""
2168
  "Dashboard with multiple post type was not showing post counts properly, is "
2169
  "now fixed and shows count for each post type"
2170
  msgstr ""
2171
 
2172
- #: admin/html/whats-new.php:183
2173
  msgid "Login Redirect showing blank page is fixed"
2174
  msgstr ""
2175
 
2176
- #: admin/html/whats-new.php:185
2177
  msgid ""
2178
  "If \"Previous Page\" was set for redirection, login redirect was "
2179
  "redirecting to blank page for users who hit login page directly"
2180
  msgstr ""
2181
 
2182
- #: admin/html/whats-new.php:194
2183
  msgid "Enhanced Login Redirect to redirect users to previous page"
2184
  msgstr ""
2185
 
2186
- #: admin/html/whats-new.php:196
2187
  msgid ""
2188
  "You can choose Previous Page as Login Redirect page settings now to "
2189
  "redirect users to the page from which they went for Login. "
2190
  msgstr ""
2191
 
2192
- #: admin/html/whats-new.php:199
2193
  msgid "Email HTML links not Rendreing properly issue is fixed"
2194
  msgstr ""
2195
 
2196
- #: admin/html/whats-new.php:201
2197
  msgid ""
2198
  "For some clients emails were not rendering the HTML links properly, this is "
2199
  "now fixed"
2200
  msgstr ""
2201
 
2202
- #: admin/html/whats-new.php:204
2203
  msgid "Form Builder : Form Field's Help text styles not showing properly"
2204
  msgstr ""
2205
 
2206
- #: admin/html/whats-new.php:206
2207
  msgid "Help texts styling is now fixed and much easier to read and understand"
2208
  msgstr ""
2209
 
2210
- #: admin/html/whats-new.php:209
2211
  msgid "Various other code improvements"
2212
  msgstr ""
2213
 
2214
- #: admin/html/whats-new.php:220
2215
  msgid "Dashboard Post Listing now supports multiple post types"
2216
  msgstr ""
2217
 
2218
- #: admin/html/whats-new.php:222
2219
  msgid ""
2220
  "Now you can show multiple post type in user dashboard using shortcode like "
2221
  "this : <br><b>[wpuf_dashboard post_type=\"post,page,custom_type\"]</b> "
2222
  msgstr ""
2223
 
2224
- #: admin/html/whats-new.php:225
2225
  msgid "Added Login Redirect Settings"
2226
  msgstr ""
2227
 
2228
- #: admin/html/whats-new.php:227
2229
  msgid ""
2230
  "You can now set a page from <i>WPUF Settings > Login/Registration > "
2231
  "Redirect after Login</i>. When login redirection is active the user will be "
2232
  "redirected to this page after login."
2233
  msgstr ""
2234
 
2235
- #: admin/html/whats-new.php:230
2236
  msgid "Image Upload field button text can be changed"
2237
  msgstr ""
2238
 
2239
- #: admin/html/whats-new.php:232
2240
  msgid ""
2241
  "The upload button text can now be changed for image upload fields which "
2242
  "defaults to \"Select Image\" if not set. "
2243
  msgstr ""
2244
 
2245
- #: admin/html/whats-new.php:235
2246
  msgid "Multi Step Form styles made compatible with more themes"
2247
  msgstr ""
2248
 
2249
- #: admin/html/whats-new.php:237
2250
  msgid "Multi Step form can now be styled more easily with other themes "
2251
  msgstr ""
2252
 
2253
- #: admin/html/whats-new.php:240
2254
  msgid "Required field condition for google map not working is fixed"
2255
  msgstr ""
2256
 
2257
- #: admin/html/whats-new.php:242
2258
  msgid ""
2259
  "If Google Map field was set as required users were able to submit form "
2260
  "without changing the default value."
2261
  msgstr ""
2262
 
2263
- #: admin/html/whats-new.php:251
2264
  msgid "Admin form builder is now fully responsive."
2265
  msgstr ""
2266
 
2267
- #: admin/html/whats-new.php:253
2268
  msgid ""
2269
  "Now you can edit forms from your mobile devices directly. Our improved "
2270
  "responsive layouts of form builder makes it easy for you to build forms on "
2271
  "the go."
2272
  msgstr ""
2273
 
2274
- #: admin/html/whats-new.php:256
2275
  msgid "Added color schemes for creating attractive form layouts."
2276
  msgstr ""
2277
 
2278
- #: admin/html/whats-new.php:258
2279
  msgid ""
2280
  "We have added 3 new color schemes for the form layouts which you can choose "
2281
  "from each form's new display settings."
2282
  msgstr ""
2283
 
2284
- #: admin/html/whats-new.php:261
2285
  msgid "Restrict Free subscription pack to be enabled multiple times "
2286
  msgstr ""
2287
 
2288
- #: admin/html/whats-new.php:263
2289
  msgid ""
2290
  "Free subscription packs now can only be purchased once and the limit "
2291
  "applies properly"
2292
  msgstr ""
2293
 
2294
- #: admin/html/whats-new.php:266
2295
  msgid "Various other bug fixes and improvements were made "
2296
  msgstr ""
2297
 
2298
- #: admin/html/whats-new.php:268
2299
  msgid "Please see the change log to see full details."
2300
  msgstr ""
2301
 
2302
- #: admin/html/whats-new.php:277
2303
  msgid "Added upgrade function for default category"
2304
  msgstr ""
2305
 
2306
- #: admin/html/whats-new.php:279
2307
  msgid "Upgrader added to upgrade previously set default post category."
2308
  msgstr ""
2309
 
2310
- #: admin/html/whats-new.php:282
2311
  msgid "Subscription pack cannot be canceled"
2312
  msgstr ""
2313
 
2314
- #: admin/html/whats-new.php:284
2315
  msgid ""
2316
  "Fixed recurring subscription pack cannot be canceled from my account page "
2317
  "in subscription details section."
2318
  msgstr ""
2319
 
2320
- #: admin/html/whats-new.php:287
2321
  msgid "page installer admin notice logic issue"
2322
  msgstr ""
2323
 
2324
- #: admin/html/whats-new.php:289
2325
  msgid ""
2326
  "Fixed page installer admin notice logic problem due to new payment settings "
2327
  "default value not set."
2328
  msgstr ""
2329
 
2330
- #: admin/html/whats-new.php:299
2331
  msgid "Setup Wizard"
2332
  msgstr ""
2333
 
2334
- #: admin/html/whats-new.php:301
2335
  msgid "Setup Wizard added to turn off payment options and install pages."
2336
  msgstr ""
2337
 
2338
- #: admin/html/whats-new.php:305
2339
  msgid "Multi-select Category"
2340
  msgstr ""
2341
 
2342
- #: admin/html/whats-new.php:307
2343
  msgid "Add multi-select to default category in post form settings."
2344
  msgstr ""
2345
 
2346
- #: admin/html/whats-new.php:311
2347
  msgid "Select Text option for Taxonomy"
2348
  msgstr ""
2349
 
2350
- #: admin/html/whats-new.php:313
2351
  msgid ""
2352
  "Add Select Text option for taxonomy fields. Now you can add default text "
2353
  "with empty value as first option for Taxonomy dropdown."
2354
  msgstr ""
2355
 
2356
- #: admin/html/whats-new.php:316
2357
  msgid "Taxonomy Checkbox Inline"
2358
  msgstr ""
2359
 
2360
- #: admin/html/whats-new.php:318
2361
  msgid ""
2362
  "Added checkbox inline option to taxonomy checkbox. You can now display "
2363
  "Taxonomy checkbox fields inline."
2364
  msgstr ""
2365
 
2366
- #: admin/html/whats-new.php:328
2367
  msgid "Manage schedule for form submission"
2368
  msgstr ""
2369
 
2370
- #: admin/html/whats-new.php:330
2371
  msgid ""
2372
  "Do not accept form submission if the current date is not between the date "
2373
  "range of the schedule."
2374
  msgstr ""
2375
 
2376
- #: admin/html/whats-new.php:334
2377
  msgid "Restrict form submission based on the user roles"
2378
  msgstr ""
2379
 
2380
- #: admin/html/whats-new.php:336
2381
  msgid ""
2382
  "Restrict form submission based on the user roles. Now you can manage user "
2383
  "role base permission on form submission."
2384
  msgstr ""
2385
 
2386
- #: admin/html/whats-new.php:340
2387
  msgid "Limit how many entries a form will accept"
2388
  msgstr ""
2389
 
2390
- #: admin/html/whats-new.php:342
2391
  msgid ""
2392
  "Limit how many entries a form will accept and display a custom message when "
2393
  "that limit is reached."
2394
  msgstr ""
2395
 
2396
- #: admin/html/whats-new.php:346
2397
  msgid "Show/hide Admin Bar"
2398
  msgstr ""
2399
 
2400
- #: admin/html/whats-new.php:348
2401
  msgid "Control the admin bar visibility based on user roles."
2402
  msgstr ""
2403
 
2404
- #: admin/html/whats-new.php:352
2405
  msgid "Ajax Login widget"
2406
  msgstr ""
2407
 
2408
- #: admin/html/whats-new.php:354
2409
  msgid ""
2410
  "Login user is more simple now with Ajax Login Widget. The simple ajax login "
2411
  "form do not required page loading for login."
2412
  msgstr ""
2413
 
2414
- #: admin/html/whats-new.php:358
2415
  msgid "Form submission with Captcha field"
2416
  msgstr ""
2417
 
2418
- #: admin/html/whats-new.php:360
2419
  msgid "Form field validation process updated if form submits with captcha field."
2420
  msgstr ""
2421
 
2422
- #: admin/html/whats-new.php:374
2423
  msgid "What's New in WPUF?"
2424
  msgstr ""
2425
 
@@ -2560,23 +2570,23 @@ msgid "Draft"
2560
  msgstr ""
2561
 
2562
  #: admin/posting.php:68 class/asset-loader.php:54 class/render-form.php:1698
2563
- #: wpuf.php:524
2564
  msgid "Are you sure?"
2565
  msgstr ""
2566
 
2567
- #: admin/posting.php:76 class/asset-loader.php:62 wpuf.php:534
2568
  msgid "Allowed Files"
2569
  msgstr ""
2570
 
2571
- #: admin/posting.php:79 class/asset-loader.php:65 wpuf.php:540
2572
  msgid "Maximum number of files reached!"
2573
  msgstr ""
2574
 
2575
- #: admin/posting.php:80 class/asset-loader.php:66 wpuf.php:541
2576
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
2577
  msgstr ""
2578
 
2579
- #: admin/posting.php:81 class/asset-loader.php:67 wpuf.php:542
2580
  msgid "You have uploaded an incorrect file type. Please try again."
2581
  msgstr ""
2582
 
@@ -2860,20 +2870,17 @@ msgstr ""
2860
  msgid ""
2861
  "<p>\n"
2862
  " <strong class=\"highlight-text\" "
2863
- "style=\"font-size: 18px\">It’s Our Birthday <span class=\"wpuf-cake\" "
2864
- "style=\"font-size: 20px\"> &#x1F382;</span>\n"
2865
- " But You Get The Present <span "
2866
- "class=\"wpuf-gift\" style=\"font-size: 20px\"> &#x1F381;</span> "
2867
- "</strong><br>\n"
2868
- " Get 25&#37; Discount with coupon:\n"
2869
- " <a target=\"_blank\" "
2870
- "href=\"%1$s\"><strong> we25 </strong></a>\n"
2871
  " <br>\n"
2872
  " Offer ending soon!\n"
2873
  " </p>"
2874
  msgstr ""
2875
 
2876
- #: admin/promotion.php:66
2877
  msgid "Get the Offer"
2878
  msgstr ""
2879
 
@@ -3452,27 +3459,27 @@ msgstr ""
3452
  msgid "Install Now"
3453
  msgstr ""
3454
 
3455
- #: class/asset-loader.php:31 wpuf.php:432
3456
  msgid "is required"
3457
  msgstr ""
3458
 
3459
- #: class/asset-loader.php:32 wpuf.php:433
3460
  msgid "does not match"
3461
  msgstr ""
3462
 
3463
- #: class/asset-loader.php:33 wpuf.php:434
3464
  msgid "is not valid"
3465
  msgstr ""
3466
 
3467
- #: class/asset-loader.php:45 wpuf.php:511
3468
  msgid "Please fix the errors to proceed"
3469
  msgstr ""
3470
 
3471
- #: class/asset-loader.php:47 wpuf.php:513
3472
  msgid "Word limit reached"
3473
  msgstr ""
3474
 
3475
- #: class/asset-loader.php:48 wpuf.php:514
3476
  msgid "Are you sure you want to cancel your current subscription ?"
3477
  msgstr ""
3478
 
@@ -3493,6 +3500,8 @@ msgid "Label for post submission menu"
3493
  msgstr ""
3494
 
3495
  #: class/frontend-account.php:48 class/frontend-account.php:110
 
 
3496
  msgid "Submit Post"
3497
  msgstr ""
3498
 
@@ -3566,7 +3575,7 @@ msgstr ""
3566
  msgid "%s"
3567
  msgstr ""
3568
 
3569
- #: class/frontend-dashboard.php:159 templates/dashboard/posts.php:30
3570
  msgid "You are not the post author. Cheeting huh!"
3571
  msgstr ""
3572
 
@@ -3630,7 +3639,7 @@ msgstr ""
3630
  msgid "Something went wrong"
3631
  msgstr ""
3632
 
3633
- #: class/frontend-form-post.php:1123
3634
  msgid "Email successfully verified. Please Login."
3635
  msgstr ""
3636
 
@@ -4131,12 +4140,16 @@ msgstr ""
4131
  msgid "Optional"
4132
  msgstr ""
4133
 
4134
- #: includes/class-dokan-integration.php:37 templates/dashboard/dashboard.php:14
4135
- #: wpuf-functions.php:1622
 
4136
  msgid "Posts"
4137
  msgstr ""
4138
 
4139
  #: includes/class-dokan-integration.php:92
 
 
 
4140
  msgid "Allow Post"
4141
  msgstr ""
4142
 
@@ -4145,10 +4158,13 @@ msgid "Allow Vendors to submit post from dashboard area"
4145
  msgstr ""
4146
 
4147
  #: includes/class-dokan-integration.php:100
 
4148
  msgid "Select Post Form"
4149
  msgstr ""
4150
 
4151
  #: includes/class-dokan-integration.php:101
 
 
4152
  msgid "Select a post form that will show on the vendor dashboard."
4153
  msgstr ""
4154
 
@@ -4681,6 +4697,19 @@ msgstr ""
4681
  msgid "Unlimited"
4682
  msgstr ""
4683
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4684
  #: includes/class-whats-new.php:67
4685
  msgid "Whats New"
4686
  msgstr ""
@@ -5577,11 +5606,13 @@ msgstr ""
5577
  msgid "You have created <span>%d</span> (%s)"
5578
  msgstr ""
5579
 
5580
- #: templates/dokan/new-post.php:7
 
5581
  msgid "You are not allowed to submit post. Please contact admin"
5582
  msgstr ""
5583
 
5584
  #: templates/dokan/post-listing.php:3
 
5585
  msgid "+ Add Post"
5586
  msgstr ""
5587
 
@@ -5625,6 +5656,10 @@ msgstr ""
5625
  msgid "No post form assigned yet by the administrator."
5626
  msgstr ""
5627
 
 
 
 
 
5628
  #: views/welcome-page.php:445 views/welcome-page.php:586
5629
  msgid "Create Your First Form"
5630
  msgstr ""
@@ -5913,15 +5948,15 @@ msgstr ""
5913
  msgid "</strong> or greater."
5914
  msgstr ""
5915
 
5916
- #: wpuf.php:186
5917
  msgid "Your Post Has Been Expired"
5918
  msgstr ""
5919
 
5920
- #: wpuf.php:520
5921
  msgid "Please Cancel Your Currently Active Pack first!"
5922
  msgstr ""
5923
 
5924
- #: wpuf.php:679
5925
  msgid "Error: Nonce verification failed"
5926
  msgstr ""
5927
 
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"
153
  #: admin/post-forms-list-table.php:344 admin/settings-options.php:112
154
  #: admin/settings-options.php:123 admin/settings-options.php:215
155
  #: admin/settings-options.php:226 admin/template.php:70
156
+ #: class/asset-loader.php:49 includes/free/form-element.php:477 wpuf.php:534
157
  msgid "Yes"
158
  msgstr ""
159
 
167
  #: admin/post-forms-list-table.php:345 admin/settings-options.php:113
168
  #: admin/settings-options.php:124 admin/settings-options.php:216
169
  #: admin/settings-options.php:227 admin/template.php:71
170
+ #: class/asset-loader.php:50 includes/free/form-element.php:478 wpuf.php:535
171
  msgid "No"
172
  msgstr ""
173
 
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
 
1899
  msgstr ""
1900
 
1901
  #: admin/html/whats-new.php:8
1902
+ msgid "WooCommerce gallery images not getting saved"
1903
  msgstr ""
1904
 
1905
  #: admin/html/whats-new.php:10
1906
  msgid ""
1907
+ "After releasing version 2.9.3, WooCommerce gallery image field stopped "
1908
+ "working. You will get it fixed in this version."
1909
+ msgstr ""
1910
+
1911
+ #: admin/html/whats-new.php:19
1912
+ msgid "The Events Calendar Integration Form"
1913
+ msgstr ""
1914
+
1915
+ #: admin/html/whats-new.php:21
1916
+ msgid ""
1917
  "Now admin can allow users to create event from the frontend. Currently WPUF "
1918
  "has a one click pre-build event form that has been integrated with The "
1919
  "Events Calendar plugin"
1920
  msgstr ""
1921
 
1922
+ #: admin/html/whats-new.php:24
1923
  msgid "Post Submission Facility From Account Page"
1924
  msgstr ""
1925
 
1926
+ #: admin/html/whats-new.php:26
1927
  msgid ""
1928
  "On the frontend account page, added a new menu item named <b>Submit "
1929
  "Post</b>. Now admin can allow users to submit post from their default "
1932
  "you can assign any post form that will use to submit posts."
1933
  msgstr ""
1934
 
1935
+ #: admin/html/whats-new.php:29
1936
  msgid "Login/Lost Password Link Under Registration Form"
1937
  msgstr ""
1938
 
1939
+ #: admin/html/whats-new.php:31
1940
  msgid "Added Login/Lost Password link under registration form"
1941
  msgstr ""
1942
 
1943
+ #: admin/html/whats-new.php:40
1944
  msgid "Added drag and drop image ordering on image upload"
1945
  msgstr ""
1946
 
1947
+ #: admin/html/whats-new.php:42
1948
  msgid ""
1949
  "Now frontend users can drag & drop the images/files to change the order "
1950
  "while uploading."
1951
  msgstr ""
1952
 
1953
+ #: admin/html/whats-new.php:45
1954
  msgid "Added reCAPTCHA field in login form"
1955
  msgstr ""
1956
 
1957
+ #: admin/html/whats-new.php:47
1958
  msgid ""
1959
  "Admin has the option to show reCAPTCHA field in login form. Check the "
1960
  "related settings from <strong>User Frontend > Settings > "
1961
  "Login/Registration</strong>"
1962
  msgstr ""
1963
 
1964
+ #: admin/html/whats-new.php:50
1965
  msgid "Added preview option in forms"
1966
  msgstr ""
1967
 
1968
+ #: admin/html/whats-new.php:52
1969
  msgid ""
1970
  "You can see a nice <strong>Preview</strong> button with <strong>Save "
1971
  "Form</strong> button, admin can take a quick look of the form without using "
1972
  "shortcode"
1973
  msgstr ""
1974
 
1975
+ #: admin/html/whats-new.php:55
1976
  msgid "Fixed hiding “Select Image” button while uploading multiple images."
1977
  msgstr ""
1978
 
1979
+ #: admin/html/whats-new.php:57
1980
  msgid ""
1981
  "The upload button will not be hidden until the user selects max number of "
1982
  "files "
1983
  msgstr ""
1984
 
1985
+ #: admin/html/whats-new.php:60
1986
  msgid "Added form limit notice before form submission"
1987
  msgstr ""
1988
 
1989
+ #: admin/html/whats-new.php:62
1990
  msgid ""
1991
  "Limit notice message was showing after submission, now it is showing when "
1992
  "rendering the form"
1993
  msgstr ""
1994
 
1995
+ #: admin/html/whats-new.php:65
1996
  msgid "Fixed: default post category not saving"
1997
  msgstr ""
1998
 
1999
+ #: admin/html/whats-new.php:67
2000
  msgid ""
2001
  "From the form <strong>Settings > Post Settings</strong>, default post "
2002
  "category options were not saving. Now, it's fixed."
2003
  msgstr ""
2004
 
2005
+ #: admin/html/whats-new.php:70
2006
  msgid ""
2007
  "WPUF dashboard shortcode with form_id attribute was not showing posts "
2008
  "properly"
2009
  msgstr ""
2010
 
2011
+ #: admin/html/whats-new.php:72
2012
  msgid ""
2013
  "Now you can list posts on the frontend by using <strong>form_id<strong/> "
2014
  "attribute with <strong>[wpuf_dashboard]</strong> shortcode"
2015
  msgstr ""
2016
 
2017
+ #: admin/html/whats-new.php:81
2018
  msgid "Changed text domain to `wp-user-frontend` from `wpuf` "
2019
  msgstr ""
2020
 
2021
+ #: admin/html/whats-new.php:83
2022
  msgid ""
2023
  "If you are using other language than English. Please <b>rename</b> your "
2024
  "<i>.po and .mo </i> files to `wp-user-frontend_` from `wpuf_` <br> This "
2025
  "change was made to support translations from translate.wordpress.org"
2026
  msgstr ""
2027
 
2028
+ #: admin/html/whats-new.php:86
2029
  msgid "Added WP User Frontend Data export and erase functionality."
2030
  msgstr ""
2031
 
2032
+ #: admin/html/whats-new.php:88
2033
  msgid "Added functionality to export WP User Frontend Data to comply with GDPR."
2034
  msgstr ""
2035
 
2036
+ #: admin/html/whats-new.php:91
2037
  msgid "Added billing address customizer."
2038
  msgstr ""
2039
 
2040
+ #: admin/html/whats-new.php:93
2041
  msgid "Added customizer options for billing address in payment page."
2042
  msgstr ""
2043
 
2044
+ #: admin/html/whats-new.php:96
2045
  msgid "Make the payment page responsive."
2046
  msgstr ""
2047
 
2048
+ #: admin/html/whats-new.php:98
2049
  msgid "Some css adjustments are made in payment page to make it responsive."
2050
  msgstr ""
2051
 
2052
+ #: admin/html/whats-new.php:101
2053
  msgid "Fixed image upload issue in Safari."
2054
  msgstr ""
2055
 
2056
+ #: admin/html/whats-new.php:103
2057
  msgid "Images were not showing after upload in safari, it is fixed now."
2058
  msgstr ""
2059
 
2060
+ #: admin/html/whats-new.php:106
2061
  msgid "Post update issue after updating or removing post images."
2062
  msgstr ""
2063
 
2064
+ #: admin/html/whats-new.php:108
2065
  msgid ""
2066
  "Posts cannot be updated after updating or removing post images, it is fixed "
2067
  "now."
2068
  msgstr ""
2069
 
2070
+ #: admin/html/whats-new.php:117
2071
  msgid "Allow overriding form input styles using theme styling."
2072
  msgstr ""
2073
 
2074
+ #: admin/html/whats-new.php:119
2075
  msgid "Overriding form input styles using theme style is now possible."
2076
  msgstr ""
2077
 
2078
+ #: admin/html/whats-new.php:122
2079
  msgid "Fixed Auto Login after registration."
2080
  msgstr ""
2081
 
2082
+ #: admin/html/whats-new.php:124
2083
  msgid "Auto Login after registration was not working is fixed now."
2084
  msgstr ""
2085
 
2086
+ #: admin/html/whats-new.php:127
2087
  msgid "Fixed fallback cost calculation"
2088
  msgstr ""
2089
 
2090
+ #: admin/html/whats-new.php:129
2091
  msgid "Fallback cost calculation was inaccurate for some cases, it is fixed now."
2092
  msgstr ""
2093
 
2094
+ #: admin/html/whats-new.php:132
2095
  msgid "Removal of subscription from User Profile gets reverted if updated"
2096
  msgstr ""
2097
 
2098
+ #: admin/html/whats-new.php:134
2099
  msgid "User subscription deletion gets reverted if updated is fixed."
2100
  msgstr ""
2101
 
2102
+ #: admin/html/whats-new.php:137
2103
  msgid "Show Free pack users in subscribers list."
2104
  msgstr ""
2105
 
2106
+ #: admin/html/whats-new.php:139
2107
  msgid "Free pack users were not showing in subscribers list, now they will."
2108
  msgstr ""
2109
 
2110
+ #: admin/html/whats-new.php:148
2111
  msgid "WP User Frontend Guten Block is added"
2112
  msgstr ""
2113
 
2114
+ #: admin/html/whats-new.php:150
2115
  msgid ""
2116
  "WPUF Form Block is now available to be used within gutenberg editor with "
2117
  "preview of the form. "
2118
  msgstr ""
2119
 
2120
+ #: admin/html/whats-new.php:153
2121
  msgid "Advanced Custom Fields plugin compatibility"
2122
  msgstr ""
2123
 
2124
+ #: admin/html/whats-new.php:155
2125
  msgid "Now all your ACF fields can be used within WPUF Post forms. "
2126
  msgstr ""
2127
 
2128
+ #: admin/html/whats-new.php:158
2129
  msgid "Taxonomy Terms not showing for custom post types"
2130
  msgstr ""
2131
 
2132
+ #: admin/html/whats-new.php:160
2133
  msgid ""
2134
  "Fixed an issue with taxonomy terms not appearing for Custom Post types "
2135
  "within Form Settings and Dashboard Post Listing"
2136
  msgstr ""
2137
 
2138
+ #: admin/html/whats-new.php:163
2139
  msgid "Various other code optimizations"
2140
  msgstr ""
2141
 
2142
+ #: admin/html/whats-new.php:165 admin/html/whats-new.php:222
2143
  msgid "Code structure organization and optimization for better performance"
2144
  msgstr ""
2145
 
2146
+ #: admin/html/whats-new.php:174
2147
  msgid "WoooCommerce billing address Sync"
2148
  msgstr ""
2149
 
2150
+ #: admin/html/whats-new.php:176
2151
  msgid ""
2152
  "If an existing customer has previously set his billing address, that will "
2153
  "be imported into WPUF Billing address "
2154
  msgstr ""
2155
 
2156
+ #: admin/html/whats-new.php:179
2157
  msgid "Trial subscription message not showing properly"
2158
  msgstr ""
2159
 
2160
+ #: admin/html/whats-new.php:181
2161
  msgid "Subscriptions with Trial now shows trial notices"
2162
  msgstr ""
2163
 
2164
+ #: admin/html/whats-new.php:184
2165
  msgid "Reset email Key not working"
2166
  msgstr ""
2167
 
2168
+ #: admin/html/whats-new.php:186
2169
  msgid "Reset Email key was not working in some cases"
2170
  msgstr ""
2171
 
2172
+ #: admin/html/whats-new.php:189
2173
  msgid "Post count not showing on the frontend dashboard"
2174
  msgstr ""
2175
 
2176
+ #: admin/html/whats-new.php:191
2177
  msgid ""
2178
  "Dashboard with multiple post type was not showing post counts properly, is "
2179
  "now fixed and shows count for each post type"
2180
  msgstr ""
2181
 
2182
+ #: admin/html/whats-new.php:194
2183
  msgid "Login Redirect showing blank page is fixed"
2184
  msgstr ""
2185
 
2186
+ #: admin/html/whats-new.php:196
2187
  msgid ""
2188
  "If \"Previous Page\" was set for redirection, login redirect was "
2189
  "redirecting to blank page for users who hit login page directly"
2190
  msgstr ""
2191
 
2192
+ #: admin/html/whats-new.php:205
2193
  msgid "Enhanced Login Redirect to redirect users to previous page"
2194
  msgstr ""
2195
 
2196
+ #: admin/html/whats-new.php:207
2197
  msgid ""
2198
  "You can choose Previous Page as Login Redirect page settings now to "
2199
  "redirect users to the page from which they went for Login. "
2200
  msgstr ""
2201
 
2202
+ #: admin/html/whats-new.php:210
2203
  msgid "Email HTML links not Rendreing properly issue is fixed"
2204
  msgstr ""
2205
 
2206
+ #: admin/html/whats-new.php:212
2207
  msgid ""
2208
  "For some clients emails were not rendering the HTML links properly, this is "
2209
  "now fixed"
2210
  msgstr ""
2211
 
2212
+ #: admin/html/whats-new.php:215
2213
  msgid "Form Builder : Form Field's Help text styles not showing properly"
2214
  msgstr ""
2215
 
2216
+ #: admin/html/whats-new.php:217
2217
  msgid "Help texts styling is now fixed and much easier to read and understand"
2218
  msgstr ""
2219
 
2220
+ #: admin/html/whats-new.php:220
2221
  msgid "Various other code improvements"
2222
  msgstr ""
2223
 
2224
+ #: admin/html/whats-new.php:231
2225
  msgid "Dashboard Post Listing now supports multiple post types"
2226
  msgstr ""
2227
 
2228
+ #: admin/html/whats-new.php:233
2229
  msgid ""
2230
  "Now you can show multiple post type in user dashboard using shortcode like "
2231
  "this : <br><b>[wpuf_dashboard post_type=\"post,page,custom_type\"]</b> "
2232
  msgstr ""
2233
 
2234
+ #: admin/html/whats-new.php:236
2235
  msgid "Added Login Redirect Settings"
2236
  msgstr ""
2237
 
2238
+ #: admin/html/whats-new.php:238
2239
  msgid ""
2240
  "You can now set a page from <i>WPUF Settings > Login/Registration > "
2241
  "Redirect after Login</i>. When login redirection is active the user will be "
2242
  "redirected to this page after login."
2243
  msgstr ""
2244
 
2245
+ #: admin/html/whats-new.php:241
2246
  msgid "Image Upload field button text can be changed"
2247
  msgstr ""
2248
 
2249
+ #: admin/html/whats-new.php:243
2250
  msgid ""
2251
  "The upload button text can now be changed for image upload fields which "
2252
  "defaults to \"Select Image\" if not set. "
2253
  msgstr ""
2254
 
2255
+ #: admin/html/whats-new.php:246
2256
  msgid "Multi Step Form styles made compatible with more themes"
2257
  msgstr ""
2258
 
2259
+ #: admin/html/whats-new.php:248
2260
  msgid "Multi Step form can now be styled more easily with other themes "
2261
  msgstr ""
2262
 
2263
+ #: admin/html/whats-new.php:251
2264
  msgid "Required field condition for google map not working is fixed"
2265
  msgstr ""
2266
 
2267
+ #: admin/html/whats-new.php:253
2268
  msgid ""
2269
  "If Google Map field was set as required users were able to submit form "
2270
  "without changing the default value."
2271
  msgstr ""
2272
 
2273
+ #: admin/html/whats-new.php:262
2274
  msgid "Admin form builder is now fully responsive."
2275
  msgstr ""
2276
 
2277
+ #: admin/html/whats-new.php:264
2278
  msgid ""
2279
  "Now you can edit forms from your mobile devices directly. Our improved "
2280
  "responsive layouts of form builder makes it easy for you to build forms on "
2281
  "the go."
2282
  msgstr ""
2283
 
2284
+ #: admin/html/whats-new.php:267
2285
  msgid "Added color schemes for creating attractive form layouts."
2286
  msgstr ""
2287
 
2288
+ #: admin/html/whats-new.php:269
2289
  msgid ""
2290
  "We have added 3 new color schemes for the form layouts which you can choose "
2291
  "from each form's new display settings."
2292
  msgstr ""
2293
 
2294
+ #: admin/html/whats-new.php:272
2295
  msgid "Restrict Free subscription pack to be enabled multiple times "
2296
  msgstr ""
2297
 
2298
+ #: admin/html/whats-new.php:274
2299
  msgid ""
2300
  "Free subscription packs now can only be purchased once and the limit "
2301
  "applies properly"
2302
  msgstr ""
2303
 
2304
+ #: admin/html/whats-new.php:277
2305
  msgid "Various other bug fixes and improvements were made "
2306
  msgstr ""
2307
 
2308
+ #: admin/html/whats-new.php:279
2309
  msgid "Please see the change log to see full details."
2310
  msgstr ""
2311
 
2312
+ #: admin/html/whats-new.php:288
2313
  msgid "Added upgrade function for default category"
2314
  msgstr ""
2315
 
2316
+ #: admin/html/whats-new.php:290
2317
  msgid "Upgrader added to upgrade previously set default post category."
2318
  msgstr ""
2319
 
2320
+ #: admin/html/whats-new.php:293
2321
  msgid "Subscription pack cannot be canceled"
2322
  msgstr ""
2323
 
2324
+ #: admin/html/whats-new.php:295
2325
  msgid ""
2326
  "Fixed recurring subscription pack cannot be canceled from my account page "
2327
  "in subscription details section."
2328
  msgstr ""
2329
 
2330
+ #: admin/html/whats-new.php:298
2331
  msgid "page installer admin notice logic issue"
2332
  msgstr ""
2333
 
2334
+ #: admin/html/whats-new.php:300
2335
  msgid ""
2336
  "Fixed page installer admin notice logic problem due to new payment settings "
2337
  "default value not set."
2338
  msgstr ""
2339
 
2340
+ #: admin/html/whats-new.php:310
2341
  msgid "Setup Wizard"
2342
  msgstr ""
2343
 
2344
+ #: admin/html/whats-new.php:312
2345
  msgid "Setup Wizard added to turn off payment options and install pages."
2346
  msgstr ""
2347
 
2348
+ #: admin/html/whats-new.php:316
2349
  msgid "Multi-select Category"
2350
  msgstr ""
2351
 
2352
+ #: admin/html/whats-new.php:318
2353
  msgid "Add multi-select to default category in post form settings."
2354
  msgstr ""
2355
 
2356
+ #: admin/html/whats-new.php:322
2357
  msgid "Select Text option for Taxonomy"
2358
  msgstr ""
2359
 
2360
+ #: admin/html/whats-new.php:324
2361
  msgid ""
2362
  "Add Select Text option for taxonomy fields. Now you can add default text "
2363
  "with empty value as first option for Taxonomy dropdown."
2364
  msgstr ""
2365
 
2366
+ #: admin/html/whats-new.php:327
2367
  msgid "Taxonomy Checkbox Inline"
2368
  msgstr ""
2369
 
2370
+ #: admin/html/whats-new.php:329
2371
  msgid ""
2372
  "Added checkbox inline option to taxonomy checkbox. You can now display "
2373
  "Taxonomy checkbox fields inline."
2374
  msgstr ""
2375
 
2376
+ #: admin/html/whats-new.php:339
2377
  msgid "Manage schedule for form submission"
2378
  msgstr ""
2379
 
2380
+ #: admin/html/whats-new.php:341
2381
  msgid ""
2382
  "Do not accept form submission if the current date is not between the date "
2383
  "range of the schedule."
2384
  msgstr ""
2385
 
2386
+ #: admin/html/whats-new.php:345
2387
  msgid "Restrict form submission based on the user roles"
2388
  msgstr ""
2389
 
2390
+ #: admin/html/whats-new.php:347
2391
  msgid ""
2392
  "Restrict form submission based on the user roles. Now you can manage user "
2393
  "role base permission on form submission."
2394
  msgstr ""
2395
 
2396
+ #: admin/html/whats-new.php:351
2397
  msgid "Limit how many entries a form will accept"
2398
  msgstr ""
2399
 
2400
+ #: admin/html/whats-new.php:353
2401
  msgid ""
2402
  "Limit how many entries a form will accept and display a custom message when "
2403
  "that limit is reached."
2404
  msgstr ""
2405
 
2406
+ #: admin/html/whats-new.php:357
2407
  msgid "Show/hide Admin Bar"
2408
  msgstr ""
2409
 
2410
+ #: admin/html/whats-new.php:359
2411
  msgid "Control the admin bar visibility based on user roles."
2412
  msgstr ""
2413
 
2414
+ #: admin/html/whats-new.php:363
2415
  msgid "Ajax Login widget"
2416
  msgstr ""
2417
 
2418
+ #: admin/html/whats-new.php:365
2419
  msgid ""
2420
  "Login user is more simple now with Ajax Login Widget. The simple ajax login "
2421
  "form do not required page loading for login."
2422
  msgstr ""
2423
 
2424
+ #: admin/html/whats-new.php:369
2425
  msgid "Form submission with Captcha field"
2426
  msgstr ""
2427
 
2428
+ #: admin/html/whats-new.php:371
2429
  msgid "Form field validation process updated if form submits with captcha field."
2430
  msgstr ""
2431
 
2432
+ #: admin/html/whats-new.php:385
2433
  msgid "What's New in WPUF?"
2434
  msgstr ""
2435
 
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
 
2870
  msgid ""
2871
  "<p>\n"
2872
  " <strong class=\"highlight-text\" "
2873
+ "style=\"font-size: 18px\">33&#37; flat discount on all our "
2874
+ "products</strong><br>\n"
2875
+ " Save money this holiday season "
2876
+ "while supercharging your WordPress site with plugins that were made to "
2877
+ "empower you.\n"
 
 
 
2878
  " <br>\n"
2879
  " Offer ending soon!\n"
2880
  " </p>"
2881
  msgstr ""
2882
 
2883
+ #: admin/promotion.php:64
2884
  msgid "Get the Offer"
2885
  msgstr ""
2886
 
3459
  msgid "Install Now"
3460
  msgstr ""
3461
 
3462
+ #: class/asset-loader.php:31 wpuf.php:451
3463
  msgid "is required"
3464
  msgstr ""
3465
 
3466
+ #: class/asset-loader.php:32 wpuf.php:452
3467
  msgid "does not match"
3468
  msgstr ""
3469
 
3470
+ #: class/asset-loader.php:33 wpuf.php:453
3471
  msgid "is not valid"
3472
  msgstr ""
3473
 
3474
+ #: class/asset-loader.php:45 wpuf.php:530
3475
  msgid "Please fix the errors to proceed"
3476
  msgstr ""
3477
 
3478
+ #: class/asset-loader.php:47 wpuf.php:532
3479
  msgid "Word limit reached"
3480
  msgstr ""
3481
 
3482
+ #: class/asset-loader.php:48 wpuf.php:533
3483
  msgid "Are you sure you want to cancel your current subscription ?"
3484
  msgstr ""
3485
 
3500
  msgstr ""
3501
 
3502
  #: class/frontend-account.php:48 class/frontend-account.php:110
3503
+ #: includes/class-wcmp-integration.php:131
3504
+ #: includes/class-wcmp-integration.php:149
3505
  msgid "Submit Post"
3506
  msgstr ""
3507
 
3575
  msgid "%s"
3576
  msgstr ""
3577
 
3578
+ #: class/frontend-dashboard.php:162 templates/dashboard/posts.php:30
3579
  msgid "You are not the post author. Cheeting huh!"
3580
  msgstr ""
3581
 
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
 
4140
  msgid "Optional"
4141
  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 ""
4155
 
4158
  msgstr ""
4159
 
4160
  #: includes/class-dokan-integration.php:100
4161
+ #: includes/class-wcmp-integration.php:47
4162
  msgid "Select Post Form"
4163
  msgstr ""
4164
 
4165
  #: includes/class-dokan-integration.php:101
4166
+ #: includes/class-wc-vendors-integration.php:46
4167
+ #: includes/class-wcmp-integration.php:52
4168
  msgid "Select a post form that will show on the vendor dashboard."
4169
  msgstr ""
4170
 
4697
  msgid "Unlimited"
4698
  msgstr ""
4699
 
4700
+ #: includes/class-wc-vendors-integration.php:38
4701
+ #: includes/class-wcmp-integration.php:41
4702
+ msgid "If checked, vendor can submit post from dashboard area."
4703
+ msgstr ""
4704
+
4705
+ #: includes/class-wcmp-integration.php:86
4706
+ msgid "Vendor Submit Post"
4707
+ msgstr ""
4708
+
4709
+ #: includes/class-wcmp-integration.php:91
4710
+ msgid "Set endpoint for vendor submit post page"
4711
+ msgstr ""
4712
+
4713
  #: includes/class-whats-new.php:67
4714
  msgid "Whats New"
4715
  msgstr ""
5606
  msgid "You have created <span>%d</span> (%s)"
5607
  msgstr ""
5608
 
5609
+ #: templates/dokan/new-post.php:7 templates/wc-marketplace/new-post.php:7
5610
+ #: templates/wc-vendors/new-post.php:7
5611
  msgid "You are not allowed to submit post. Please contact admin"
5612
  msgstr ""
5613
 
5614
  #: templates/dokan/post-listing.php:3
5615
+ #: templates/wc-marketplace/post-listing.php:3
5616
  msgid "+ Add Post"
5617
  msgstr ""
5618
 
5656
  msgid "No post form assigned yet by the administrator."
5657
  msgstr ""
5658
 
5659
+ #: templates/wc-vendors/post-listing.php:3
5660
+ msgid "+ Add New Post"
5661
+ msgstr ""
5662
+
5663
  #: views/welcome-page.php:445 views/welcome-page.php:586
5664
  msgid "Create Your First Form"
5665
  msgstr ""
5948
  msgid "</strong> or greater."
5949
  msgstr ""
5950
 
5951
+ #: wpuf.php:189
5952
  msgid "Your Post Has Been Expired"
5953
  msgstr ""
5954
 
5955
+ #: wpuf.php:539
5956
  msgid "Please Cancel Your Currently Active Pack first!"
5957
  msgstr ""
5958
 
5959
+ #: wpuf.php:698
5960
  msgid "Error: Nonce verification failed"
5961
  msgstr ""
5962
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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: 2.9.4
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -230,6 +230,12 @@ redirected to the edit page with that post id. Then you'll see the edit post for
230
 
231
  == Changelog ==
232
 
 
 
 
 
 
 
233
  = v2.9.4 (20 November, 2018) =
234
 
235
  * **Fix:** WooCommerce Gallery images not getting saved
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
 
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
236
+ * **New:** Integrated WC Vendors plugin: vendor can submit post from their frontend dashboard
237
+ * **Fix:** Post is getting duplicate while updating
238
+
239
  = v2.9.4 (20 November, 2018) =
240
 
241
  * **Fix:** WooCommerce Gallery images not getting saved
templates/wc-marketplace/edit-post.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php echo do_shortcode( '[wpuf_edit]' ); ?>
templates/wc-marketplace/new-post.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $access = $WCMp->vendor_caps->vendor_general_settings('allow_wpuf_post');
4
+ $selected_form = (get_wcmp_vendor_settings('wpuf_post_forms', 'general')) ? get_wcmp_vendor_settings('wpuf_post_forms', 'general') : '';
5
+
6
+ if ( $access != 'yes' ) {
7
+ echo __( 'You are not allowed to submit post. Please contact admin', 'wp-user-frontend' );
8
+ }else {
9
+ echo do_shortcode( '[wpuf_form id="' . $selected_form . '"]' );
10
+ }
templates/wc-marketplace/post-listing.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <header class="wpuf-dashboard-header">
2
+ <span class="pull-right">
3
+ <a class="btn btn-default" href="<?php echo wcmp_get_vendor_dashboard_endpoint_url( get_wcmp_vendor_settings( 'wcmp_vendor_submit_post_endpoint', 'vendor', 'general', 'submit-post' ) ); ?>?action=new-post" class="dokan-btn dokan-btn-theme"><?php _e( '+ Add Post', 'wp-user-frontend' ); ?></a>
4
+ </span>
5
+ </header><!-- .dokan-dashboard-header -->
6
+
7
+ <?php echo do_shortcode( '[wpuf_dashboard]' ); ?>
templates/wc-marketplace/posts.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template for displaying WC Marketplace vendor submit post content
4
+ *
5
+ * Override guideline: https://wedevs.com/docs/wp-user-frontend-pro/tutorials/how-to-override-dashboard-templates/
6
+ *
7
+ * @since 3.0
8
+ */
9
+
10
+ global $WCMp;
11
+ ?>
12
+ <div class="col-md-12 wpuf-wcmp-integration-content">
13
+ <div class="panel panel-default">
14
+ <div class="panel-body">
15
+ <?php
16
+ $action = isset( $_GET['action'] ) ? $_GET['action'] : '';
17
+
18
+ if ( $action == 'new-post' ) {
19
+ require_once WPUF_ROOT . '/templates/wc-marketplace/new-post.php';
20
+ }else if( $action == 'edit-post' ) {
21
+ require_once WPUF_ROOT . '/templates/wc-marketplace/edit-post.php';
22
+ }else{
23
+ require_once WPUF_ROOT . '/templates/wc-marketplace/post-listing.php';
24
+ }
25
+ ?>
26
+ </div>
27
+ </div>
28
+ </div>
templates/wc-vendors/edit-post.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php echo do_shortcode( '[wpuf_edit]' ); ?>
templates/wc-vendors/new-post.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $access = get_option( 'allow_wcvendors_wpuf_post', 'no' );
4
+ $selected_form = get_option( 'wcvendors_wpuf_allowed_post_form', '' );
5
+
6
+ if ( $access != 'yes' ) {
7
+ echo __( 'You are not allowed to submit post. Please contact admin', 'wp-user-frontend' );
8
+ }else {
9
+ echo do_shortcode( '[wpuf_form id="' . $selected_form . '"]' );
10
+ }
templates/wc-vendors/post-listing.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <header class="wpuf-dashboard-header">
2
+ <span class="pull-right">
3
+ <a class="wpuf-add-post-button" href="<?php echo get_permalink(get_option( 'wcvendors_vendor_dashboard_page_id' ) ); ?>?action=new-post" class="dokan-btn dokan-btn-theme"><?php _e( '+ Add New Post', 'wp-user-frontend' ); ?></a>
4
+ </span>
5
+ </header><!-- .dokan-dashboard-header -->
6
+
7
+ <?php echo do_shortcode( '[wpuf_dashboard]' ); ?>
templates/wc-vendors/posts.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template for displaying WC Vendors vendor submit post content
4
+ *
5
+ * Override guideline: https://wedevs.com/docs/wp-user-frontend-pro/tutorials/how-to-override-dashboard-templates/
6
+ *
7
+ * @since 3.0
8
+ */
9
+ ?>
10
+ <div class="wpuf-wc-vendors-submit-post-page">
11
+ <?php
12
+ $action = isset( $_GET['action'] ) ? $_GET['action'] : '';
13
+
14
+ if ( $action == 'new-post' ) {
15
+ require_once WPUF_ROOT . '/templates/wc-vendors/new-post.php';
16
+ }else if( $action == 'edit-post' ) {
17
+ require_once WPUF_ROOT . '/templates/wc-vendors/edit-post.php';
18
+ }else{
19
+ require_once WPUF_ROOT . '/templates/wc-vendors/post-listing.php';
20
+ }
21
+ ?>
22
+ </div>
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: 2.9.4
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', '2.9.4' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
@@ -129,7 +129,10 @@ final class WP_User_Frontend {
129
 
130
  add_filter( 'show_admin_bar', array( $this, 'show_admin_bar' ) );
131
 
132
- add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
 
 
 
133
 
134
  // do plugin upgrades
135
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_action_links' ) );
@@ -252,6 +255,14 @@ final class WP_User_Frontend {
252
  require_once WPUF_ROOT . '/includes/class-dokan-integration.php';
253
  }
254
 
 
 
 
 
 
 
 
 
255
  require_once WPUF_ROOT . '/includes/class-user.php';
256
  require_once WPUF_ROOT . '/includes/class-user-subscription.php';
257
 
@@ -313,6 +324,14 @@ final class WP_User_Frontend {
313
  $this->container['dokan_integration'] = new WPUF_Dokan_Integration();
314
  }
315
 
 
 
 
 
 
 
 
 
316
  if ( is_admin() ) {
317
 
318
  $this->container['settings'] = WPUF_Admin_Settings::init();
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
  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__ ) );
129
 
130
  add_filter( 'show_admin_bar', array( $this, 'show_admin_bar' ) );
131
 
132
+ // enqueue plugin scripts, don't remove priority.
133
+ // If remove or set priority under 1000 then registered styles will not load on WC Marketplace vendor dashboard.
134
+ // we have integration with WC Marketplace plugin since version 3.0 where WC Marketplae vendors' can submit post
135
+ add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 9999 );
136
 
137
  // do plugin upgrades
138
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_action_links' ) );
255
  require_once WPUF_ROOT . '/includes/class-dokan-integration.php';
256
  }
257
 
258
+ if ( class_exists( 'WCMp' ) ) {
259
+ require_once WPUF_ROOT . '/includes/class-wcmp-integration.php';
260
+ }
261
+
262
+ if ( class_exists( 'WC_Vendors' ) ) {
263
+ require_once WPUF_ROOT . '/includes/class-wc-vendors-integration.php';
264
+ }
265
+
266
  require_once WPUF_ROOT . '/includes/class-user.php';
267
  require_once WPUF_ROOT . '/includes/class-user-subscription.php';
268
 
324
  $this->container['dokan_integration'] = new WPUF_Dokan_Integration();
325
  }
326
 
327
+ if ( class_exists( 'WCMp' ) ) {
328
+ $this->container['wcmp_integration'] = new WPUF_WCMp_Integration();
329
+ }
330
+
331
+ if ( class_exists( 'WC_Vendors' ) ) {
332
+ $this->container['WCV_Integration'] = new WPUF_WC_Vendors_Integration();
333
+ }
334
+
335
  if ( is_admin() ) {
336
 
337
  $this->container['settings'] = WPUF_Admin_Settings::init();