-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodules.php
37 lines (31 loc) · 1.14 KB
/
modules.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
<?php
/**
* Load all files pertaining to BLC's module subsystem
*/
require 'module-manager.php';
require 'module-base.php';
require 'containers.php';
require 'checkers.php';
require 'parsers.php';
$blc_module_manager = blcModuleManager::getInstance(
array(
//List of modules active by default
'http', //Link checker for the HTTP(s) protocol
'link', //HTML link parser
'image', //HTML image parser
'metadata', //Metadata (custom field) parser
'url_field', //URL field parser
'comment', //Comment container
'custom_field', //Post metadata container (aka custom fields)
'acf_field', //Post acf container (aka advanced custom fields)
'acf', //acf parser
'post', //Post content container
'page', //Page content container
'youtube-checker', //Video checker using the YouTube API
'youtube-iframe', //Embedded YouTube video container
'dummy', //Dummy container used as a fallback
)
);
require 'any-post.php';
//Let other plugins register virtual modules.
do_action( 'blc_register_modules', $blc_module_manager );