-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtyk_dev_portal.php
52 lines (38 loc) · 1.46 KB
/
tyk_dev_portal.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
<?php
declare(strict_types=1);
/**
* Plugin Name: Tyk Developer Portal
* Description: Integrates a developer portal of a Tyk API Gateway in your WordPress site
* Author: Liip <[email protected]>
* Version: 1.3.0
* Date: 20.02.2020
* Text Domain: tyk-dev-portal.
*/
defined('ABSPATH') or exit('No script kiddies please!');
define('TYK_DEV_PORTAL_PLUGIN_PATH', dirname(__FILE__));
define('TYK_DEV_PORTAL_TPL_PATH', TYK_DEV_PORTAL_PLUGIN_PATH . '/templates');
define('TYK_DEV_PORTAL_PLUGIN_FILE', __FILE__);
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/dev_portal.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/portal_user.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/api_manager.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/dashboard_ajax_provider.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/token.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/tyk_interaction.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/tyk_api.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/classes/tyk_gateway.php';
require_once TYK_DEV_PORTAL_PLUGIN_PATH . '/template_tags.php';
$plugin = new Tyk_Dev_Portal();
$plugin->register_hooks();
$plugin->register_actions();
$plugin->register_shortcodes();
/**
* Get url to this plugin's dir.
*
* @param string $path Path to the plugin file you want the url for
*
* @return string
*/
function tyk_dev_portal_plugin_url($path)
{
return plugin_dir_url(__FILE__) . $path;
}