-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorbit.php
46 lines (40 loc) · 1.2 KB
/
orbit.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
<?php
/**
* Plugin Name: Orbit
* Plugin URI: https://github.com/eighteen73/orbit
* Description: Opinionated WordPress behaviour overrides
* Author: eighteen73
* Author URI: https://eighteen73.co.uk
* Text Domain: orbit
* Domain Path: /languages
* Version: 1.4.2
* Update URI: https://github.com/eighteen73/orbit
*
* @package Orbit
*/
namespace Eighteen73\Orbit;
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Useful global constants.
define( 'ORBIT_URL', plugin_dir_url( __FILE__ ) );
define( 'ORBIT_PATH', plugin_dir_path( __FILE__ ) );
define( 'ORBIT_INC', ORBIT_PATH . 'includes/' );
require_once 'autoload.php';
Forms\Options::instance()->setup();
DisallowIndexing\DisallowIndexing::instance()->setup();
add_action(
'init',
function () {
Admin\CleanUI::instance()->setup();
Admin\HideUpdates::instance()->setup();
Security\DisableAPI::instance()->setup();
Security\DisableXMLRPC::instance()->setup();
Security\HideAuthor::instance()->setup();
Security\HideVersion::instance()->setup();
Security\RemoveHeadLinks::instance()->setup();
OtherFilters::instance()->setup();
HealthCheck::instance()->setup();
}
);