HEX
Server: Apache
System: Linux webserver101.turnkeywebspace.com 4.18.0-553.81.1.el8_10.x86_64 #1 SMP Mon Oct 27 11:29:19 EDT 2025 x86_64
User: mastech10 (1521)
PHP: 8.2.30
Disabled: show_source,system,shell_exec,passthru,exec,phpinfo,popen,proc_open,eval
Upload Files
File: /home/mastech10/public_html/wp-content/themes/news-zone/frontpage-options.php
<?php

/**
 *
 * @package News Zone */
function newszone_customize_register($wp_customize) {

$newses_default = newszone_get_default_theme_options();



//section title
$wp_customize->add_setting('editor_section_title',
    array(
        'sanitize_callback' => 'sanitize_text_field',
    )
);

$wp_customize->add_control(
    new newses_Section_Title(
        $wp_customize,
        'editor_section_title',
        array(
            'label'             => esc_html__( 'Editor Section ', 'news-zone' ),
            'section'           => 'frontpage_main_banner_section_settings',
            'priority'          => 90,
        )
    )
);

// Setting - drop down category for slider.
$wp_customize->add_setting('select_editor_news_category',
    array(
        'default' => $newses_default['select_editor_news_category'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'absint',
    )
);


$wp_customize->add_control(new Newses_Dropdown_Taxonomies_Control($wp_customize, 'select_editor_news_category',
    array(
        'label' => esc_html__('Category', 'news-zone'),
        'description' => esc_html__('Select category for Editor 2 Post', 'news-zone'),
        'section' => 'frontpage_main_banner_section_settings',
        'type' => 'dropdown-taxonomies',
        'taxonomy' => 'category',
        'priority' => 91,
    )));



}
add_action('customize_register', 'newszone_customize_register');