admin_color_scheme_picker WordPress Action Hook
The admin_color_scheme_picker hook is used to add color schemes to the WordPress admin area. This hook is called on the colors-page.php file.
do_action( 'admin_color_scheme_picker', int $user_id ) #
Fires in the ‘Admin Color Scheme’ section of the user editing screen.
Description
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.
Parameters
- $user_id
(int)The user ID.
Source
File: wp-admin/user-edit.php
Changelog
Version | Description |
---|---|
3.8.1 | Added $user_id parameter. |
3.0.0 | Introduced. |