-
Notifications
You must be signed in to change notification settings - Fork 4
/
functions.php
39 lines (30 loc) · 1.03 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
<?php
/**
* Functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package yith-wonder
* @since 1.0.0
*/
if ( ! defined( 'YITH_WONDER_VERSION' ) ) {
define( 'YITH_WONDER_VERSION', wp_get_theme()->get( 'Version' ) );
}
// Scripts.
require_once get_theme_file_path( 'inc/scripts.php' );
// Enable customizer (mainly for Additional CSS feature).
add_action( 'customize_register', '__return_true' );
// Block patterns.
require_once get_theme_file_path( 'inc/register-block-pattern-categories.php' );
// Block styles.
require_once get_theme_file_path( 'inc/register-block-styles.php' );
// Block variations.
require_once get_theme_file_path( 'inc/register-block-variations.php' );
// WooCommerce.
if ( class_exists( 'woocommerce' ) ) {
require_once get_theme_file_path( 'inc/woocommerce.php' );
}
// Backward compatibility.
require_once get_theme_file_path( 'inc/backward-compatibility.php' );
// Block variations.
require_once get_theme_file_path( 'inc/registered-block-patterns-override.php' );