Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $wp_customize->add_setting( 'myplugin_options[color]', array(
- 'type' => 'option',
- 'capability' => 'manage_options',
- 'default' => '#ff2525',
- 'sanitize_callback' => 'sanitize_hex_color',
- ) );
- $wp_customize->add_setting('options[toggle_hedaer]',array('default'=>true,'type'=>'option','capability' => 'manage_options','transport' => 'postMessage'));
- $wp_customize->add_control('options[toggle_header]',array('section' => 'live_options','label'=>'Display header?','type'=>'checkbox'));
- $wp_customize->add_setting('options[background]',array('default' => 'normal','type'=>'option','capability'=>'manage_options','transport' => 'postMessage'));
- $wp_customize->add_control('options[background]',array('section'=>'live_options','label'=> 'Change Background','type'=>'radio','choices'=>array('normal'=>'Normal','inverse'=>'Inverse') ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement