admin_color_scheme_picker
Fires in the 'Administration 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.
Использование
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.
Список изменений
| С версии 3.0.0 | Введена. |
| С версии 3.8.1 | Added $user_id parameter. |
Где вызывается хук
В файле: /wp-admin/user-edit.php
admin_color_scheme_picker
wp-admin/user-edit.php 350
do_action( 'admin_color_scheme_picker', $user_id );
Где используется хук в WordPress
wp-admin/includes/admin-filters.php 43
add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );