-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspace-api.php
39 lines (33 loc) · 1.31 KB
/
space-api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @link https://https://github.com/maker-space-experimenta/space-api-wordpress-plugin
* @since 1.0.0
* @package wp_space_api
*
* @wordpress-plugin
* Plugin Name: Space API
* Plugin URI: https://github.com/maker-space-experimenta/space-api-wordpress-plugin
* Description: Plugin to provide a space api endpoint for your makerspace, Fablab, Hackspace, ...
* Version: 1.0.0
* Author: harmoniemand
* Author URI: https://hmnd.de
* License: MIT
* License URI: https://github.com/maker-space-experimenta/space-api-wordpress-plugin/blob/main/LICENSE
* Text Domain: wp-space-api
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
// the main plugin class
require_once dirname(__FILE__) . '/src/space-api.class.php';
SpaceAPI::instance();
register_activation_hook(__FILE__, array('SpaceAPI', 'activate'));
register_deactivation_hook(__FILE__, array('SpaceAPI', 'deactivate'));