-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-traklight.php
More file actions
50 lines (42 loc) · 1.24 KB
/
wp-traklight.php
File metadata and controls
50 lines (42 loc) · 1.24 KB
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
<?php
/*
* Plugin Name: WP Traklight
* Version: 1.0.1
* Plugin URI: http://www.one-400.com/
* Description: A Traklight integration plugin for WordPress
* Author: ONE400
* Author URI: http://www.one-400.com/
* Requires at least: 4.0
* Tested up to: 4.0
*
* Text Domain: wp-traklight
* Domain Path: /lang/
*
* @package WordPress
* @author ONE400
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit;
// Load plugin class files
require_once( 'includes/class-wp-traklight.php' );
require_once( 'includes/class-wp-traklight-settings.php' );
require_once( 'includes/class-wp-traklight-base.php' );
// Load plugin libraries
require_once( 'includes/lib/class-wp-traklight-admin-api.php' );
require_once( 'includes/lib/class-wp-traklight-post-type.php' );
require_once( 'includes/lib/class-wp-traklight-taxonomy.php' );
require_once( 'includes/lib/traklight-php-api-wrapper.php' );
/**
* Returns the main instance of WP_Traklight to prevent the need to use globals.
*
* @since 1.0.0
* @return object WP_Traklight
*/
function WP_Traklight () {
$instance = WP_Traklight::instance( __FILE__, '1.0.1' );
if ( is_null( $instance->settings ) ) {
$instance->settings = WP_Traklight_Settings::instance( $instance );
}
return $instance;
}
WP_Traklight();