admin_color_scheme_picker action-hookWP 3.0.0

Fires in the 'Admin Color Scheme' section of the user editing screen.

The section is only enabled if a callback is hooked to the action, and if there is more than one defined color scheme for the admin.

Usage

add_action( 'admin_color_scheme_picker', 'wp_kama_admin_color_scheme_picker_action' );

/**
 * Function for `admin_color_scheme_picker` action-hook.
 * 
 * @param int $user_id The user ID.
 *
 * @return void
 */
function wp_kama_admin_color_scheme_picker_action( $user_id ){

	// action...
}
$user_id(int)
The user ID.

Changelog

Since 3.0.0 Introduced.
Since 3.8.1 Added $user_id parameter.

Where the hook is called

In file: /wp-admin/user-edit.php
admin_color_scheme_picker
wp-admin/user-edit.php 344
do_action( 'admin_color_scheme_picker', $user_id );

Where the hook is used in WordPress

wp-admin/includes/admin-filters.php 43
add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );