Where to insert customize_register in wordpress plugin
You can use the customize_register action like this: function my_customize_register( $wp_customize ) { /* Just use the $wp_customize object and create a section or use a built-in section. */ $wp_customize->add_section( ‘my_section’, array( ‘title’ => ‘My Section’, ‘priority’ => 30, ) ); /* Now you can add your settings … */ $wp_customize->add_setting( ‘my_options[my_first_option]’, array( ‘default’ => … Read more