HEX
Server: Apache/2.4.37 (CentOS Stream) OpenSSL/1.1.1k
System: Linux ysnet.com.tw 4.18.0-553.5.1.el8.x86_64 #1 SMP Tue May 21 05:46:01 UTC 2024 x86_64
User: test (521)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/test/wp-content/themes/mynote/inc/customizer.php
<?php
/**
 * Main Customizer in Mynote theme.
 *
 * @author Terry Lin
 * @link https://terryl.in/
 *
 * @package WordPress
 * @subpackage Mynote
 * @since 1.0.7
 * @version 1.3.0
 */

$includes = array(
	'/classes/customizer/class-customize-alpha-color-control.php',
	'/classes/customizer/class-customize-image-radio-control.php',
	'/classes/customizer/class-customize-toggle-control.php',
	'/classes/customizer/class-customize-content-control.php',
	'/customer/about.php',
	'/customer/homepage.php',
	'/customer/navbar.php',
	'/customer/progress-bar.php',
	'/customer/layout.php',
	'/customer/post-card.php',
	'/customer/post-page.php',
);

foreach ( $includes as $file ) {
	require get_parent_theme_file_path( '/inc' . $file );
}


/**
 * Customizer
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 * @return void
 */

$customizer_options = array(
	'about',
	'homepage',
	'layout',
	'navbar',
	'post_card',
	'post_page',
	'progress_bar',
);

foreach ( $customizer_options as $customizer_option ) {
	add_action( 'customize_register', 'mynote_customize_' . $customizer_option );
}