PluginProbe
Easy!Appointments / 1.5.2
Easy!Appointments v1.5.2
1.5.2 1.5.1 trunk
easyappointments / easyappointments.php

easyappointments.php in Easy!Appointments 1.5.2, at easyappointments.php

85 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 *
6 * This file is read by WordPress to generate the plugin information in the plugin
7 * admin area. This file also includes all of the dependencies used by the plugin,
8 * registers the activation and deactivation functions, and defines a function
9 * that starts the plugin.
10 *
11 * @link https://alextselegidis.com
12 * @since 1.0.0
13 * @package Easyappointments
14 *
15 * @wordpress-plugin
16 * Plugin Name: Easy!Appointments
17 * Plugin URI: https://easyappointments.org
18 * Description: Add appointment booking to your site with Easy!Appointments - no monthly fees, no per-booking charges, your data on your own server.
19 * Version: 1.5.2
20 * Requires at least: 5.0
21 * Requires PHP: 5.6
22 * Author: Alex Tselegidis
23 * Author URI: https://alextselegidis.com
24 * License: GPL-2.0+
25 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
26 * Text Domain: easyappointments
27 * Domain Path: /languages
28 */
29
30 // If this file is called directly, abort.
31 if ( ! defined( 'WPINC' ) ) {
32 die;
33 }
34
35 /**
36 * Currently plugin version.
37 * Start at version 1.0.0 and use SemVer - https://semver.org
38 * Rename this for your plugin and update it as you release new versions.
39 */
40 define( 'EASYAPPOINTMENTS_VERSION', '1.5.2' );
41
42 /**
43 * The code that runs during plugin activation.
44 * This action is documented in includes/class-easyappointments-activator.php
45 */
46 function activate_easyappointments() {
47 require_once plugin_dir_path( __FILE__ ) . 'includes/class-easyappointments-activator.php';
48 Easyappointments_Activator::activate();
49 }
50
51 /**
52 * The code that runs during plugin deactivation.
53 * This action is documented in includes/class-easyappointments-deactivator.php
54 */
55 function deactivate_easyappointments() {
56 require_once plugin_dir_path( __FILE__ ) . 'includes/class-easyappointments-deactivator.php';
57 Easyappointments_Deactivator::deactivate();
58 }
59
60 register_activation_hook( __FILE__, 'activate_easyappointments' );
61 register_deactivation_hook( __FILE__, 'deactivate_easyappointments' );
62
63 /**
64 * The core plugin class that is used to define internationalization,
65 * admin-specific hooks, and public-facing site hooks.
66 */
67 require plugin_dir_path( __FILE__ ) . 'includes/class-easyappointments.php';
68
69 /**
70 * Begins execution of the plugin.
71 *
72 * Since everything within the plugin is registered via hooks,
73 * then kicking off the plugin from this point in the file does
74 * not affect the page life cycle.
75 *
76 * @since 1.0.0
77 */
78 function run_easyappointments() {
79
80 $plugin = new Easyappointments();
81 $plugin->run();
82
83 }
84 run_easyappointments();
85