-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-google-datastudio.php
34 lines (27 loc) · 1017 Bytes
/
wp-google-datastudio.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
<?php
/**
* Plugin Name: Google Data Studio
* Description: Displays Data Studio dashboard in WordPress administration panel.
* Plugin URI: https://github.com/innocode-digital/wp-google-datastudio
* Version: 1.0.2
* Author: Innocode
* Author URI: https://innocode.com
* Tested up to: 5.4
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
use Innocode\GoogleDataStudio;
define( 'INNOCODE_GOOGLE_DATASTUDIO_VERSION', '1.0.2' );
define( 'INNOCODE_GOOGLE_DATASTUDIO_FILE', __FILE__ );
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
$innocode_google_datastudio = new GoogleDataStudio\Plugin( __DIR__ );
$innocode_google_datastudio->run();
$GLOBALS['innocode_google_datastudio'] = $innocode_google_datastudio;
if ( ! function_exists( 'innocode_google_datastudio' ) ) {
function innocode_google_datastudio() {
global $innocode_google_datastudio;
return $innocode_google_datastudio;
}
}