Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: admin_color_scheme_picker

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
85
86 if ( count( $_wp_admin_css_colors ) > 1 && has_action( 'admin_color_scheme_picker' ) ) : ?>
87 <div class="changelog about-colors">
88      <div class="feature-section col one-col">
89           <div>
90                <h3><?php _e( 'Pick a color' ); ?></h3>
91                <p><?php _e( 'We&#8217;ve included eight color schemes so you can pick your favorite. Choose from any of them below to change it instantly.' ); ?>
92                     <?php
93                     /** This action is documented in wp-admin/user-edit.php */
94                     do_action( 'admin_color_scheme_picker' );
95                     ?>
96                <p><?php printf( __( 'To change your color scheme later, just <a href="%1$s">visit your profile</a>.' ), get_edit_profile_url( get_current_user_id() ) ); ?></p>
97           </div>
98      </div>
99 </div>
100
101 <hr>
102 <?php endif; ?>
103