-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-tools.php
40 lines (35 loc) · 893 Bytes
/
dev-tools.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
<?php
/**
* Plugin Name: Developer Tools
* Plugin URI: https://flschaves.com/
* Description: This is a Developer Tools plugin for improving the development experience.
* Author: Filipe Chaves
* Author URI: https://flschaves.com
* Text Domain: dev-tools
* Domain Path: /languages
* Version: 0.1.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
if ( ! defined( 'DEV_TOOLS_VERSION' ) ) {
define( 'DEV_TOOLS_VERSION', '0.1.0' );
}
if ( ! defined( 'DEV_TOOLS_DIR' ) ) {
define( 'DEV_TOOLS_DIR', __DIR__ );
}
if ( ! defined( 'DEV_TOOLS_FILE' ) ) {
define( 'DEV_TOOLS_FILE', __FILE__ );
}
/**
* Returns the main instance of DevTools.
*
* @since 0.1.0
* @return DevTools
*/
function devTools() {
return \DevTools\DevTools::instance();
}
devTools();