admin_color_scheme_picker
Action HookDescription
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.Hook Information
File Location |
wp-admin/user-edit.php
View on GitHub
|
Hook Type | Action |
Line Number | 350 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$user_id
|
The user ID. |
Usage Examples
Basic Usage
<?php
// Hook into admin_color_scheme_picker
add_action('admin_color_scheme_picker', 'my_custom_function', 10, 1);
function my_custom_function($user_id) {
// Your custom code here
}
Source Code Context
wp-admin/user-edit.php:350
- How this hook is used in WordPress core
<?php
345 * @since 3.0.0
346 * @since 3.8.1 Added `$user_id` parameter.
347 *
348 * @param int $user_id The user ID.
349 */
350 do_action( 'admin_color_scheme_picker', $user_id );
351 ?>
352 </td>
353 </tr>
354 <?php endif; // End if count ( $_wp_admin_css_colors ) > 1 ?>
355
PHP Documentation
<?php
/**
* 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.
*
* @since 3.0.0
* @since 3.8.1 Added `$user_id` parameter.
*
* @param int $user_id The user ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/user-edit.php
Related Hooks
Related hooks will be displayed here in future updates.