[wp-trac] [WordPress Trac] #37335: Standardized API for themes to add info/links to the customizer

WordPress Trac noreply at wordpress.org
Mon Aug 29 03:09:10 UTC 2016


#37335: Standardized API for themes to add info/links to the customizer
-----------------------------------------------+---------------------------
 Reporter:  celloexpressions                   |       Owner:
     Type:  enhancement                        |      Status:  new
 Priority:  normal                             |   Milestone:  Awaiting
Component:  Customize                          |  Review
 Severity:  normal                             |     Version:
 Keywords:  ui-feedback ux-feedback has-patch  |  Resolution:
                                               |     Focuses:  ui
-----------------------------------------------+---------------------------
Changes (by celloexpressions):

 * keywords:  needs-patch ui-feedback ux-feedback => ui-feedback ux-feedback
     has-patch


Comment:

 [attachment:37335.diff] is my proposal here, which would need to
 correspond with the Theme Review Team agreeing to allow top-level links
 only if they're added via this hook or a custom section. A theme would do
 something along the lines of:

 {{{
 add_action( 'customize_themes_panel_header', function( $panel ) {
         echo '<span class="customize-action"><a
 href="http://wordpress.org/">' . __( 'Theme documentation', 'theme-slug' )
 . '</a></span>';
 });
 }}}

 Note that the hook would move to a themes panel heading that is identical
 in #37661.

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


More information about the wp-trac mailing list