get_section('title_tagline')->panel = 'header'; // $wp_customize->get_section( 'header_image' )->panel = 'header'; $wp_customize->get_section('static_front_page')->panel = 'general'; $wp_customize->get_section('colors')->panel = 'color'; $wp_customize->get_section('background_image')->panel = 'color'; // Move the Theme Layout // $wp_customize->get_section( 'layout' )->panel = 'layouts'; // $wp_customize->get_section( 'layout' )->title = __( 'Global Layout', 'avish' ); // $wp_customize->get_section( 'layout' )->priority = 1; // Change the title/description/priority $wp_customize->get_section('title_tagline')->title = __('Site Title', 'avish'); $wp_customize->get_section('title_tagline')->description = __('Site title will automatically disapear if you upload a logo.', 'avish'); $wp_customize->get_section('colors')->title = __('Background', 'avish'); $wp_customize->get_section('colors')->priority = 1; $wp_customize->get_section('background_image')->priority = 2; // $wp_customize->get_section( 'header_image' )->priority = 1; // Live preview $wp_customize->get_setting('blogname')->transport = 'postMessage'; $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; // Change the priority of Menu panel $wp_customize->get_panel('nav_menus')->priority = 16; // Remove sections // $wp_customize->remove_control( 'blogdescription' ); // $wp_customize->remove_control( 'header_textcolor' ); } add_action('customize_register', 'avish_move_default_customizer', 99); if (!function_exists('avish_tags_list')) : /** * Retrieve tags list. * * @since 1.0.0 * @return array $tags */ function avish_tags_list() { // Set up empty array. $tags = array(); // Retrieve available tags. $tags_obj = get_tags(); // Set default/empty tag. $tags[''] = __('Select a tag …', 'avish'); // Display the tags. foreach ($tags_obj as $tag) { $tags[$tag->term_id] = esc_attr($tag->name); } return $tags; } endif; if (!function_exists('avish_cats_list')) : /** * Retrieve categories list. * * @since 1.0.0 * @return array $tags */ function avish_cats_list() { // Set up empty array. $cats = array(); // Retrieve available categories. $cats_obj = get_categories(); // Set default/empty tag. $cats[''] = __('Select a category …', 'avish'); // Display the tags. foreach ($cats_obj as $cat) { $cats[$cat->term_id] = esc_attr($cat->name); } return $cats; } endif;