PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / trunk
Booktics – Appointment Booking Calendar for Service Businesses vtrunk
1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 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.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 All 27 releases
booktics / base / activate.php

activate.php in Booktics – Appointment Booking Calendar for Service Businesses trunk, at base/activate.php

33 lines 715 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Booktics;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit;
7 }
8
9 /**
10 * Activation class
11 *
12 * @package Booktics
13 */
14 class Activate {
15 /**
16 * Activation hook
17 *
18 * @return void
19 */
20 public static function handle(): void {
21 Installer::run();
22 self::set_default_options();
23 }
24
25 private static function set_default_options(): void {
26 if ( function_exists( 'booktics_update_option' ) ) {
27 booktics_update_option( 'appointment_status', 'pending' );
28 booktics_update_option( 'appointment_statuses_for_blocked_slot', array( 'pending', 'approved' ) );
29 booktics_update_option( 'pending_reservation_timeout', 10 );
30 }
31 }
32 }
33