Skip to content

Instantly share code, notes, and snippets.

@pagelab
Created April 10, 2014 17:46
Show Gist options
  • Save pagelab/10406104 to your computer and use it in GitHub Desktop.
Save pagelab/10406104 to your computer and use it in GitHub Desktop.
Changing WordPress Theme Customizer default options
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
$wp_customize->get_control( 'background_color' )->section = 'background_image';
$wp_customize->get_section( 'background_image' )->title = 'Background Settings';
$wp_customize->get_section( 'title_tagline' )->title = 'Site Title / Logo';
$wp_customize->get_section( 'static_front_page' )->title = 'Home Page Settings';
$wp_customize->get_section( 'static_front_page' )->priority = 29;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment