-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme-tweaks.php
More file actions
35 lines (28 loc) · 880 Bytes
/
Copy paththeme-tweaks.php
File metadata and controls
35 lines (28 loc) · 880 Bytes
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
<?php
/**
* Plugin Name: Theme Tweaks
* Plugin Uri: #
* Description: Modifies native WordPress behavior focusing on better performance, security and long-term site management.
* Author: Filipe Seabra
* Author URI: #
* Version: 2.0
* Text Domain: theme-tweaks
* Domain Path: /languages/
*/
defined( 'ABSPATH' ) || exit;
use ThemeTweaks\App\Main;
require_once __DIR__ . '/vendor/autoload.php';
// Create all necessary constants for this wordpress plugin.
define( 'THEME_TWEAKS_VERSION', '2.0' );
define( 'THEME_TWEAKS_PATH', plugin_dir_path( __FILE__ ) );
define( 'THEME_TWEAKS_URL', plugin_dir_url( __FILE__ ) );
define( 'THEME_TWEAKS_ASSETS', THEME_TWEAKS_URL . 'dist/' );
define( 'THEME_TWEAKS_SLUG', 'theme-tweaks' );
function themeTweaks(): Main {
static $object = null;
if ( ! isset( $object ) ) {
$object = new Main();
}
return $object;
}
themeTweaks();