-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
35 lines (30 loc) · 1.05 KB
/
Copy pathfunctions.php
File metadata and controls
35 lines (30 loc) · 1.05 KB
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
<?php
/**
* Theme Functions File
*
* The main entry point for theme-specific PHP logic.
*
* Loads modular setup files for support features, menus, widgets, assets, WooCommerce, and other functionality from the `/inc` directory.
*
* Each file inside the `/inc` directory handles a specific aspect of the theme.
*
* @package Axon
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load core functionality and features
require_once get_template_directory() . '/inc/theme-support.php';
require_once get_template_directory() . '/inc/menus.php';
require_once get_template_directory() . '/inc/widgets.php';
// Load development tools if WP_DEBUG is enabled
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
require_once get_template_directory() . '/inc/dev-tools.php';
}
// Load theme styles/scripts
require_once get_template_directory() . '/inc/enqueue.php';
// Load WooCommerce-specific hooks and overrides if WooCommerce is active
if ( class_exists( 'WooCommerce' ) ) {
require_once get_template_directory() . '/inc/woocommerce-hooks.php';
}