add_section(
'theme_demo_content',
array(
'title' => __( 'Demo Content Import', 'travel-agency' ),
'priority' => 7,
)
);
$wp_customize->add_setting(
'demo_content_instruction',
array(
'sanitize_callback' => 'wp_kses_post'
)
);
$demo_content_description = '
';
$wp_customize->add_control(
new Travel_Agency_Info_Text(
$wp_customize,
'demo_content_instruction',
array(
'label' => __( 'About Demo Import' , 'travel-agency' ),
'section' => 'theme_demo_content',
'description' => $demo_content_description
)
)
);
$theme_demo_content_desc = '';
$wp_customize->add_setting(
'theme_demo_content_info',
array(
'default' => '',
'sanitize_callback' => 'wp_kses_post',
)
);
// Demo content
$wp_customize->add_control(
new Travel_Agency_Info_Text(
$wp_customize,
'theme_demo_content_info',
array(
'section' => 'theme_demo_content',
'description' => $theme_demo_content_desc
)
)
);
}
add_action( 'customize_register', 'travel_agency_customizer_demo_content' );