-
Notifications
You must be signed in to change notification settings - Fork 0
/
better-post-ui.php
34 lines (28 loc) · 1 KB
/
better-post-ui.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
<?php
/**
* Plugin Name: Better Post UI
* Plugin URI: (#plugin_url#)
* Description: Improves the UI and UX of the WordPress admin post form.
* Version: 3.0.4
* Author: Kristoffer Svanmark
* Author URI: (#plugin_author_url#)
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: better-post-ui
* Domain Path: /languages
*/
// Protect agains direct file access
if (! defined('WPINC')) {
die;
}
define('BETTERPOSTUI_PATH', plugin_dir_path(__FILE__));
define('BETTERPOSTUI_URL', plugins_url('', __FILE__));
define('BETTERPOSTUI_TEMPLATE_PATH', BETTERPOSTUI_PATH . 'templates/');
load_plugin_textdomain('better-post-ui', false, plugin_basename(dirname(__FILE__)) . '/languages');
// Autoload from plugin
if (file_exists(BETTERPOSTUI_PATH . 'vendor/autoload.php')) {
require_once BETTERPOSTUI_PATH . 'vendor/autoload.php';
}
require_once BETTERPOSTUI_PATH . 'Public.php';
// Start application
new BetterPostUi\App();