Make WordPress Core

Ticket #37335: 37335.diff

File 37335.diff, 1.2 KB (added by celloexpressions, 9 years ago)

Action hook in themes panel header.

  • src/wp-includes/customize/class-wp-customize-themes-section.php

     
    4848
    4949                                <?php if ( count( $this->controls ) > 0 ) : ?>
    5050                                        <button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button>
    51                                 <?php endif; ?>
     51                                <?php endif;
     52
     53                                /**
     54                                 * Fires at the end of the themes panel header in the customizer.
     55                                 *
     56                                 * Themes can insert informational links or other information here if required.
     57                                 * Links should be styled as links, not buttons, and must not navigate the user
     58                                 * away from the customizer in the current window.
     59                                 *
     60                                 * @since 4.7.0
     61                                 *
     62                                 * @param WP_Customize_Manager $this WP_Customize_Themes_Section instance.
     63                                 */
     64                                 do_action( 'customize_themes_panel_header', $this );
     65                                 ?>
    5266                        </h3>
    5367                        <div class="customize-themes-panel control-panel-content themes-php">
    5468                                <h3 class="accordion-section-title customize-section-title">