add customizer in wordpress

Solutions on MaxInterview for add customizer in wordpress by the best coders in the world

showing results for - "add customizer in wordpress"
Theo
05 May 2017
1function your_php_code( $wp_customize ) {
2    $wp_customize->add_section( 'id_of_section', array(
3        'property1' => 'value1',
4        'property2' => 'value2',
5    ) );
6 
7    $wp_customize->add_setting( 'name_of_option', array(
8        'property1' => 'value1',
9        'property2' => 'value2',
10    ) );
11 
12    $wp_customize->add_control( 'name_of_option', array(
13        'section' => 'id_of_section',
14        'property2' => 'value2',
15    ) );
16}
17add_action( 'customize_register', 'your_php_code' );
18