Last active
August 29, 2015 14:03
-
-
Save ericnicolaas/8b9d4a632f124c319b01 to your computer and use it in GitHub Desktop.
Register an image control in the Wordpress Customizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create an image control in the Customizer with an ID of 'logo_url'. | |
* | |
* This is added to the 'title_tagline' section. | |
*/ | |
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo_url', | |
array( | |
'settings' => 'logo_url', | |
'section' => 'title_tagline', | |
'label' => __( 'Logo', 'my_theme' ) | |
) ) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment