[wp-trac] [WordPress Trac] #28504: Icons for Customizer Sections

WordPress Trac noreply at wordpress.org
Wed Oct 15 11:21:48 UTC 2014


#28504: Icons for Customizer Sections
------------------------------+------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.1
Component:  Customize         |     Version:  3.4
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  ui
------------------------------+------------------

Comment (by ocean90):

 This
 {{{
 add_action( 'customize_register', function() {
         global $wp_customize;

         $wp_customize->add_panel( 'foo', array(
                 'title'    => 'Foo',
                 'capability' => 'customize',
                 'priority' => 1,
         ) );

         $wp_customize->add_section( 'bar', array(
                 'title' => 'Bar',
                 'capability' => 'edit_posts',
                 'panel' => 'foo'
         ) );

         $wp_customize->add_setting( 'foobar[foo]', array(
                 'default'    => 'Foo',
                 'capability' => 'edit_posts',
                 'type'       => 'option',
         ));

         $wp_customize->add_control('foobar', array(
                 'label'    => 'Foobar',
                 'section'  => 'bar',
                 'settings' => 'foobar[foo]',
                 'type'     => 'textarea',
         ));
 });
 }}}

 produces [attachment:28504-icon-over-title.png].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28504#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list