cwp_megar_customize_register

Megaresponsive-lite Theme Customizer.

Description

cwp_megar_customize_register( (WP_Customize_Manager) $wp_customize ); 

Parameters (1)

0. $wp_customize (WP_Customize_Manager)
Theme Customizer object.

Usage

  1. if ( !function_exists( 'cwp_megar_customize_register' ) ) { 
  2. require_once '/inc/customizer.php'; 
  3.  
  4. // Theme Customizer object. 
  5. $wp_customize = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cwp_megar_customize_register($wp_customize); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/customizer.php  
  1. function cwp_megar_customize_register( $wp_customize ) { 
  2. $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 
  3. $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 
  4. $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 
  5.  
  6. $wp_customize->add_section( 'themeslug_logo_section' , array( 
  7. 'title' => __( 'Logo', 'themeslug' ),  
  8. 'priority' => 30,  
  9. 'description' => 'Upload a logo to replace the default site name and description in the header',  
  10. ) ); 
  11.  
  12. $wp_customize->add_setting( 'themeslug_logo' ); 
  13.  
  14. $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_logo', array( 
  15. 'label' => __( 'Logo', 'themeslug' ),  
  16. 'section' => 'themeslug_logo_section',  
  17. 'settings' => 'themeslug_logo',  
  18. ) ) );  
  19.  
  20.  
  21.  
  22.