| @@ -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 | } |