PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.64
Timetics – Appointment Booking Calendar & Scheduling v1.0.64
1.0.64 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 All 65 releases
← All changes | core/dummy-data/api-faker.php +6 -4 1.0.16 → 1.0.64 View file →
@@ -5,8 +5,10 @@
5 5 * @package Timetics
6 6 */
7 7 namespace Timetics\Core\DummyData;
8 8
9 +defined( 'ABSPATH' ) || exit;
10 +
9 11 use Timetics\Base\Api;
10 12 use Timetics\Core\Appointments\Appointment;
11 13 use Timetics\Core\Bookings\Booking;
12 14 use Timetics\Core\Customers\Customer;
@@ -93,14 +95,14 @@
93 95
94 96 $appointment_data = [
95 97 'name' => $factory->sentence,
96 98 'description' => $factory->paragraph( 7 ),
97 - 'type' => 'one-to-one',
99 + 'type' => 'One-to-One',
98 100 'locations' => $this->get_locations( $factory->address ),
99 101 'staff' => [$staff],
100 102 'duration' => $this->get_duration(),
101 103 'price' => $this->get_price(),
102 - 'capacity' => 1,
104 + 'capacity' => "1",
103 105 'visibility' => $visibility[array_rand( $visibility )],
104 106 'schedule' => $this->get_schedule( $staff ),
105 107 'timezone' => 'Asia/Dhaka',
106 108 'availability' => $this->get_availability(),
@@ -356,9 +358,9 @@
356 358 private function get_locations( $address ) {
357 359 return [
358 360 [
359 361 'location' => $address,
360 - 'location_type' => 'inperson',
362 + 'location_type' => 'in-person-meeting',
361 363 ],
362 364 ];
363 365 }
364 366
@@ -383,9 +385,9 @@
383 385 return [
384 386 [
385 387 'ticket_name' => 'default',
386 388 'ticket_price' => random_int( 30, 100 ),
387 - 'ticket_quantity' => 1,
389 + 'ticket_quantity' => '1',
388 390 ],
389 391 ];
390 392 }
391 393