array(
'header_html_content'
),
'style' => array()
);
$wp_customize->add_section(
'botiga_section_hb_component__html',
array(
'title' => esc_html__( 'HTML', 'botiga' ),
'panel' => 'botiga_panel_header'
)
);
$wp_customize->add_setting(
'botiga_section_hb_component__html_title',
array(
'default' => '',
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control(
new Botiga_Text_Control(
$wp_customize,
'botiga_section_hb_component__html_title',
array(
'label' => esc_html__( 'HTML Content', 'botiga' ),
'section' => 'botiga_section_hb_component__html',
'priority' => 29
)
)
);
// Move existing options.
$priority = 30;
foreach( $opts_to_move as $control_tabs ) {
foreach( $control_tabs as $option_name ) {
if( $wp_customize->get_control( $option_name ) === NULL ) {
continue;
}
$wp_customize->get_control( $option_name )->section = 'botiga_section_hb_component__html';
$wp_customize->get_control( $option_name )->priority = $priority;
$wp_customize->get_control( $option_name )->active_callback = function(){};
$priority++;
}
}
// @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound