Skip to content

Instantly share code, notes, and snippets.

@shanutthankachan
Created March 14, 2016 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanutthankachan/c2975a7a17df24705e99 to your computer and use it in GitHub Desktop.
Save shanutthankachan/c2975a7a17df24705e99 to your computer and use it in GitHub Desktop.
function alts_customize_register( $wp_customize ) {
$wp_customize->add_setting( 'alts_logo' ); // Add setting for logo uploader
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'alts_logo', array(
'label' => __( 'Upload Logo (replaces text)', 'alts' ),
'section' => 'title_tagline',
'settings' => 'alts_logo',
) ) );
}
add_action( 'customize_register', 'alts_customize_register' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment