-
Notifications
You must be signed in to change notification settings - Fork 3
/
live-weather-station.php
66 lines (57 loc) · 1.83 KB
/
live-weather-station.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
use WeatherStation\System\Plugin\Activator;
use WeatherStation\System\Plugin\Deactivator;
use WeatherStation\System\Plugin\Uninstaller;
/**
* @package Bootstrap
* @author Jason Rouet <https://www.jasonrouet.com/>.
* @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2 or later
* @since 1.0.0
*
* @wordpress-plugin
* Plugin Name: Weather Station
* Description: Display on your WordPress site, in many elegant ways, the meteorological data collected by public or personal weather stations.
* Author: Jason Rouet
* Author URI: https://www.jasonrouet.com/
* Plugin URI: https://weather.station.software/
* Text Domain: live-weather-station
* Domain Path: /languages
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Version: 43
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once(__DIR__ . '/init.php');
/**
* The code that runs during plugin activation.
* This action is documented in includes/SystemPluginActivator.php
*
* @since 1.0.0
*/
function activate_Live_Weather_Station() {
Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/SystemPluginDeactivator.php
*
* @since 1.0.0
*/
function deactivate_Live_Weather_Station() {
Deactivator::deactivate();
}
/**
* The code that runs during plugin uninstallation.
*
* @since 3.8.0
*/
function uninstall_Live_Weather_Station() {
Uninstaller::uninstall();
}
register_activation_hook( __FILE__, 'activate_Live_Weather_Station' );
register_deactivation_hook( __FILE__, 'deactivate_Live_Weather_Station' );
register_uninstall_hook(__FILE__, 'uninstall_Live_Weather_Station');
run_Live_Weather_Station();