admin_color_scheme_picker хук-событие . WP 3.0.0
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.
Использование
add_action( 'admin_color_scheme_picker', 'action_function_name_50' ); function action_function_name_50( $user_id ){ // action... }
- $user_id(число)
- 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 313
do_action( 'admin_color_scheme_picker', $user_id );
Где используется хук в ядре WordPress
wp-admin/user-edit.php 419
add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );