-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
kwcusgs.php
41 lines (34 loc) · 991 Bytes
/
kwcusgs.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
<?php
/**
* Plugin Name: USGS Steam Flow Data
* Plugin URI: //wordpress.org/plugins/usgs-stream-flow-data/
* Description: USGS Stream Flow Data
* Version: 23.03.01
* Author: Chris Kindred
* Author URI: //www.kindredwebconsulting.com
* Text Domain: kwc_usgs
* License: GPL-2.0+
* License URI: //www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* Requires at least: 5.5
* Requires PHP: 7.0
*/
use Kindred\USGS\Core;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once( 'vendor/autoload.php' );
register_activation_hook( __FILE__, [ Core::class, 'activate' ] );
register_deactivation_hook( __FILE__, [ Core::class, 'deactivate' ] );
add_action( 'plugins_loaded', static function () {
usgs_core()->init( __file__ );
} );
/**
* Returns the core plugin class instance.
*
* @return Core
*/
function usgs_core() {
return Core::instance();
}