function cbd_cure_customizer( $wp_customize ){
// Copyright Section
$wp_customize->add_section(
'sec_copyright', array(
'title' => __( 'Copyright Settings', 'cbd-cure' ),
'description' => __( 'Copyright Section', 'cbd-cure' )
)
);
// Field 1 - Copyright Text Box
$wp_customize->add_setting(
'set_copyright', array(
'type' => 'theme_mod',
'default' => '',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control(
'set_copyright', array(
'label' => __( 'Copyright', 'cbd-cure' ),
'description' => __( 'Please, add your copyright information here', 'cbd-cure' ),
'section' => 'sec_copyright',
'type' => 'text'
)
);
}
add_action( 'customize_register', 'cbd_cure_customizer' ); // Hook para cargar el customizer