-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdm-base.php
More file actions
65 lines (56 loc) · 2.36 KB
/
dm-base.php
File metadata and controls
65 lines (56 loc) · 2.36 KB
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
61
62
63
64
65
<?php
/**
* Plugin Name: DM Base
* Plugin URI: https://github.com/DeliciousMedia/DM-Base
* Description: Base functionality, helpers and modifications to WordPress for Delicious Media projects.
* Version: 1.4.1
* Author: Delicious Media Limited
* Author URI: https://www.deliciousmedia.co.uk/
* Text Domain: dm-base
* License: GPLv3 or later
*
* @package dm-base
**/
define( 'DMBASE_SETUP_VERSION', 3 );
/**
* Set our default settings.
*
* You should change these at a per-project level in wp-config.php.
* Using the defined || define pattern there will allow you to override them in local-config.php if needed.
*/
defined( 'DM_DISABLE_COMMENTS' ) || define( 'DM_DISABLE_COMMENTS', true );
defined( 'DM_DISABLE_SEARCH' ) || define( 'DM_DISABLE_SEARCH', false );
defined( 'DM_DISABLE_EMOJIS' ) || define( 'DM_DISABLE_EMOJIS', true );
defined( 'DM_DISABLE_REST_ANON' ) || define( 'DM_DISABLE_REST_ANON', true );
defined( 'DM_DISABLE_RSS' ) || define( 'DM_DISABLE_RSS', true );
defined( 'DM_LASTLOGIN' ) || define( 'DM_LASTLOGIN', true );
defined( 'DM_EI' ) || define( 'DM_EI', true );
defined( 'DM_PREVENT_USER_ENUM' ) || define( 'DM_PREVENT_USER_ENUM', true );
defined( 'DM_ACF_SYNC' ) || define( 'DM_ACF_SYNC', true );
defined( 'DM_FLAGS_TAX' ) || define( 'DM_FLAGS_TAX', true );
defined( 'DM_REMOVE_YOAST_ADS' ) || define( 'DM_REMOVE_YOAST_ADS', true );
defined( 'DM_HIDE_ACF_UI' ) || define( 'DM_HIDE_ACF_UI', true );
defined( 'DM_HIDE_ACF_CPT_REGISTRATION' ) || define( 'DM_HIDE_ACF_CPT_REGISTRATION', true );
defined( 'DM_USE_REAL_GUIDS' ) || define( 'DM_USE_REAL_GUIDS', false );
require_once __DIR__ . '/inc/helpers.php';
require_once __DIR__ . '/inc/logging.php';
require_once __DIR__ . '/inc/setup.php';
require_once __DIR__ . '/inc/third-party.php';
if ( ! defined( 'DM_ENVIRONMENT' ) ) {
new DM_AdminNotice( 'Warning: the DM_ENVIRONMENT constant was not set, defaulting to LIVE. You should set this in your local-config.php', 'warning', false );
define( 'DM_ENVIRONMENT', 'LIVE' );
}
require_once __DIR__ . '/inc/modifications.php';
require_once __DIR__ . '/inc/plugin-control.php';
if ( true === DM_LASTLOGIN ) {
require_once __DIR__ . '/inc/last-login.php';
}
if ( true === DM_EI ) {
require_once __DIR__ . '/inc/ei.php';
}
if ( true === DM_ACF_SYNC ) {
require_once __DIR__ . '/inc/acfsync.php';
}
if ( true === DM_FLAGS_TAX ) {
require_once __DIR__ . '/inc/flags.php';
}