-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.php
61 lines (52 loc) · 1.63 KB
/
bootstrap.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Plugin Name: ForwardJump Utility - CORE
* Plugin URI: https://github.com/ForwardJumpMarketingLLC/forwardjump-utility-core
* Description: The ForwardJump core functionality plugin.
*
* Version: 1.6.3
*
* Author: Tim Jensen
* Author URI: https://forwardjump.com/
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License version 2, as published by the
* Free Software Foundation. You may NOT assume that you can use any other
* version of the GPL.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE.
*
* Text Domain: forwardjump-utility-core
*
* GitHub Plugin URI: https://github.com/ForwardJumpMarketingLLC/forwardjump-utility-core
* GitHub branch: master
*
* @package ForwardJump\Utility
* PHP Version 5.6
*/
namespace ForwardJump\Utility;
if ( ! defined( 'ABSPATH' ) ) {
die;
}
$constants = [
'FJ_UTILITY_TEXT_DOMAIN' => 'forwardjump-utility-core',
'FJ_UTILITY_DIR' => __DIR__ . '/',
'FJ_UTILITY_CONFIG_DIR' => __DIR__ . '/config/',
'FJ_UTILITY_FILE' => __FILE__,
'FJ_UTILITY_URL' => plugins_url( null, __FILE__ ),
];
/**
* Define our constants.
*/
array_walk( $constants, function ( $value, $constant ) {
if ( ! defined( $constant ) ) {
define( $constant, $value );
}
} );
if ( is_admin() ) {
require_once FJ_UTILITY_DIR . 'vendor/CMB2/init.php';
}
require FJ_UTILITY_DIR . 'vendor/timothyjensen/acf-field-group-values/acf-field-group-values.php';
require_once FJ_UTILITY_DIR . 'vendor/autoload.php';