-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
51 lines (42 loc) · 2.26 KB
/
functions.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
<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Include Settings Pages
require_once get_stylesheet_directory() . '/includes/settings-page.php';
require_once get_stylesheet_directory() . '/includes/documentation-settings-page.php';
require_once get_stylesheet_directory() . '/includes/block-editor-settings.php';
require_once get_stylesheet_directory() . '/includes/remove-wp-version.php';
require_once get_stylesheet_directory() . '/includes/disable-xmlrpc.php';
require_once get_stylesheet_directory() . '/includes/disable-file-editing.php';
require_once get_stylesheet_directory() . '/includes/remove-rss.php';
require_once get_stylesheet_directory() . '/includes/disable-wp-json-if-not-logged-in.php';
require_once get_stylesheet_directory() . '/includes/move-bricks-menu.php';
require_once get_stylesheet_directory() . '/includes/auto-update-bricks.php';
require_once get_stylesheet_directory() . '/includes/login-math-captcha.php';
require_once get_stylesheet_directory() . '/includes/login-error-message.php';
require_once get_stylesheet_directory() . '/includes/login-logo-change-url-change.php';
require_once get_stylesheet_directory() . '/includes/wp-revision-limit.php';
require_once get_stylesheet_directory() . '/includes/enqueue-gsap.php';
require_once get_stylesheet_directory() . '/includes/enqueue-scripts.php';
require_once get_stylesheet_directory() . '/includes/custom-field-settings.php';
// require_once get_stylesheet_directory() . '/includes/command-center.php';
// Feature
require_once get_stylesheet_directory() . '/includes/file-size-column-media.php';
require_once get_stylesheet_directory() . '/includes/wp-admin-css-style-footer-inline.php';
// Include Custom Dynamic Data Tags
require_once get_stylesheet_directory() . '/dynamic_data_tags/custom_dynamic_data_tags.php';
// Register Custom Elements
add_action( 'init', function() {
$element_files = [
get_stylesheet_directory() . '/custom_elements/custom-html-css-script.php',
];
foreach ( $element_files as $file ) {
if ( file_exists( $file ) ) {
require_once $file;
$element_class = 'Custom_HTML_CSS_Script';
\Bricks\Elements::register_element( $file, 'custom-html-css-script', $element_class );
}
}
}, 11 );