do_action( 'admin_color_scheme_picker', int $user_id )
- Since
- 3.0.0, 3.8.1
Fires in the 'Administration 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.
Compatibility
- WordPress
- since 3.8.1
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$user_idint- The user ID.
Where this hook fires · 1
wp-admin/user-edit.php:350file scope
Source code
* * @since 3.0.0 * @since 3.8.1 Added `$user_id` parameter. * * @param int $user_id The user ID. */ do_action( 'admin_color_scheme_picker', $user_id ); ?> </td> </tr> <?php endif; // End if count ( $_wp_admin_css_colors ) > 1 ?> <?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?>Changelog
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
3.8.1
Added
$user_id parameter.from the docblock3.0.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.