function dev365_default_banner( $wp_customize ){
$wp_customize->add_section(
‘generate_layout_banner’,
array(
‘title’ => __( ‘Default Banner’, ‘generatepress’ ),
‘priority’ => 70,
‘panel’ => ‘generate_layout_panel’,
)
);
$wp_customize->add_setting( ‘generate_default_banner’);
$wp_customize->add_control(
new WP_Customize_Image_Control(
$wp_customize,
‘generate_default_banner’,
array(
‘label’ => __( ‘Default Banner’, ‘generatepress’ ),
‘section’ => ‘generate_layout_banner’,
‘settings’ => ‘generate_default_banner’,
)
)
);
}
add_action( ‘customize_register’, ‘dev365_default_banner’);
add_action(‘generate_after_navigation’, ‘testdata’);
function testdata(){
print_r( get_theme_mod(‘generate_default_banner’));
}