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.


Top ↑

Parameters

$user_id

(int)The user ID.


Top ↑

Source

File: wp-admin/user-edit.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.8.1Added $user_id parameter.
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.