-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtni-core-functionality.php
60 lines (51 loc) · 1.55 KB
/
tni-core-functionality.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
<?php
/**
* Plugin Name: TNI Core Functionality Plugin
* Plugin URI:
* Description: Contains the site's core functionality
*
* Author: Pea <[email protected]>
* Author URI: https://github.com/misfist
*
* Text Domain: tni-core
* Domain Path: /languages
*
* Version: 1.3.3
*
* @package Tni_Core_Functionality
*/
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Plugin Directory
*
* @since 1.0.0
*/
define( 'TNI_CORE_DIR', dirname( __FILE__ ) );
define( 'TNI_CORE_DIR_URL', plugin_dir_url( __FILE__ ) );
require_once( 'includes/helpers.php' );
require_once( 'includes/content-filters.php' );
require_once( 'includes/template-tags.php' );
// Load plugin class files
require_once( 'includes/class-tni-core.php' );
require_once( 'includes/class-tni-core-taxonomy.php' );
require_once( 'includes/class-tni-core-cpt.php' );
require_once( 'includes/class-tni-core-shortcodes.php' );
require_once( 'includes/class-tni-core-custom-fields.php' );
require_once( 'includes/class-tni-core-authorization.php' );
require_once( 'includes/authorization-functions.php' );
require_once( 'includes/jetpack-customization.php' );
require_once( 'includes/co-authors-plus-customization.php' );
// Load admin files
require_once( 'admin/class-tni-core-admin.php' );
require_once( 'includes/utilities.php' );
/**
* Returns the main instance of Tni_Core to prevent the need to use globals.
*
* @since 1.0.0
* @return object Tni_Core
*/
function Tni_Core() {
$instance = Tni_Core::instance( __FILE__, 'l.3.3' );
return $instance;
}
Tni_Core();