-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathktc-mu-autoloader.php
50 lines (41 loc) · 1.56 KB
/
ktc-mu-autoloader.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
<?php
/**
* Must-Use Plugins autoloader and launcher. Vroom!
*
* @package KnowTheCode
* @since 2.0.0
* @author hellofromTonya
* @link https://knowthecode.io
* @license GNU General Public License 2.0+
*/
namespace KnowTheCode;
//require_once __DIR__ . '/debug-toolkit/debug-toolkit.php';
// Load and launch Fulcrum first.
require_once 'fulcrum/bootstrap.php';
$fulcrum = \Fulcrum\launch();
include_once 'bbpress/bootstrap.php';
$fulcrum_plugins = array(
'\UpTechLabs\FulcrumSite\launch' => 'fulcrum-site/bootstrap.php',
'\KnowTheCode\Docx\launch' => 'docx/bootstrap.php',
'\Library\launch' => 'library/bootstrap.php',
'\KnowTheCode\Playbooks\launch' => 'playbooks/bootstrap.php',
'\KnowTheCode\AskTonyaPodcast\launch' => 'ask-tonya-podcast/bootstrap.php',
'\KnowTheCode\UserHistory\launch' => 'user-history/bootstrap.php',
// '\Partners\launch' => 'partners/bootstrap.php',
'\Quips\launch' => 'quips/bootstrap.php',
'\UpTechLabs\HelpCenter\launch' => 'help-center/bootstrap.php',
'\KnowTheCode\Marketing\launch' => 'marketing/bootstrap.php',
);
foreach ( $fulcrum_plugins as $function_name => $boostrap_filename ) {
require_once $boostrap_filename;
$function_name( $fulcrum );
}
require_once 'memberpress/bootstrap.php';
/**
* Fire event to alert all add-ons the plugins are loaded.
*/
do_action( 'fulcrum_all_must_use_plugins_loaded', $fulcrum );
/**
* Disable the adspot shortcode.
*/
add_shortcode( 'adspot', '__return_empty_string' );