3 * Customizer functionality for the Advanced Options section.
6 * @subpackage Shop Isle
10 * Hook controls for Advanced Options section to Customizer.
12 function shop_isle_advanced_customize_register( $wp_customize ) {
14 /* ADVANCED OPTIONS */
16 $wp_customize->add_section(
17 'shop_isle_general_section', array(
18 'title' => __( 'Advanced options', 'shop-isle' ),
23 /* Disable preloader */
24 $wp_customize->add_setting(
25 'shop_isle_disable_preloader', array(
26 'sanitize_callback' => 'shop_isle_sanitize_text',
27 'transport' => 'postMessage',
31 $wp_customize->add_control(
32 'shop_isle_disable_preloader', array(
34 'label' => __( 'Disable preloader?', 'shop-isle' ),
35 'section' => 'shop_isle_general_section',
41 $wp_customize->add_setting(
42 'shop_isle_font_size', array(
43 'sanitize_callback' => 'shop_isle_sanitize_text',
48 $wp_customize->add_control(
49 'shop_isle_font_size',
52 'label' => 'Select font size:',
53 'section' => 'shop_isle_general_section',
66 add_action( 'customize_register', 'shop_isle_advanced_customize_register' );