-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
41 lines (35 loc) · 963 Bytes
/
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
<?php
/**
* Matysiewicz Studio functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Matysiewicz_Studio
*/
if (!defined('_S_VERSION')) {
define('_S_VERSION', '1.1.2');
}
// Autoload core files
$core_includes = [
'/inc/core/init.php',
'/inc/core/scripts.php',
'/inc/functions/comments.php',
'/inc/functions/login.php',
'/inc/functions/cleanup.php',
'/inc/custom-header.php',
'/inc/template-tags.php',
'/inc/template-functions.php',
'/inc/customizer.php',
'/inc/core/barba-namespace.php'
];
foreach ($core_includes as $file) {
require_once get_template_directory() . $file;
}
// Load Jetpack compatibility file
if (defined('JETPACK__VERSION')) {
require get_template_directory() . '/inc/jetpack.php';
}
function child_theme_woocommerce_support() {
add_theme_support('woocommerce');
}
add_action('after_setup_theme', 'child_theme_woocommerce_support');