PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.38
Timetics – Appointment Booking Calendar & Scheduling v1.0.38
1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 All 64 releases
← All changes | core/appointments/api-appointment-taxonomy.php +4 -1 1.0.15 → 1.0.38 View file →
@@ -208,8 +208,9 @@
208 208
209 209 $response = [
210 210 'success' => 1,
211 211 'status_code' => 200,
212 + 'message' => __( 'Category successfully created', 'timetics' ),
212 213 'data' => $category,
213 214 ];
214 215
215 216 return rest_ensure_response( $response );
@@ -250,8 +251,9 @@
250 251
251 252 $response = [
252 253 'success' => 1,
253 254 'status_code' => 200,
255 + 'message' => __( 'Category successfully updated', 'timetics' ),
254 256 'data' => $category,
255 257 ];
256 258
257 259 return rest_ensure_response( $response );
@@ -339,9 +341,9 @@
339 341
340 342 foreach ( $meeting_ids as $meeting_id ) {
341 343 $terms = get_the_terms( $meeting_id, $this->taxonomy );
342 344 $categories = [$category_id];
343 -
345 +
344 346 if ( $terms && ! is_wp_error( $terms ) ) {
345 347 $categories = array_merge( $categories, array_column( $terms, 'term_id' ) );
346 348 }
347 349
@@ -381,8 +383,9 @@
381 383 'description' => $appointment->get_description(),
382 384 'type' => $appointment->get_type(),
383 385 'locations' => $appointment->get_locations(),
384 386 'price' => $appointment->get_price(),
387 + 'visibility' => $appointment->get_visibility(),
385 388 ];
386 389
387 390 return $data;
388 391 }