print_admin_styles()
Prints the styles queue in the HTML head on admin pages.
Хуки из функции
Возвращает
string[]. Handles of the styles that were printed.
Использование
print_admin_styles();
Заметки
Global. true|false. $concatenate_scripts |
Список изменений
| С версии 2.8.0 | Введена. |
Код print_admin_styles() print admin styles WP 7.1
function print_admin_styles() {
global $concatenate_scripts;
$wp_styles = wp_styles();
script_concat_settings();
$wp_styles->do_concat = $concatenate_scripts;
$wp_styles->do_items( false );
/**
* Filters whether to print the admin styles.
*
* @since 2.8.0
*
* @param bool $print Whether to print the admin styles. Default true.
*/
if ( apply_filters( 'print_admin_styles', true ) ) {
_print_styles();
}
$wp_styles->reset();
return $wp_styles->done;
}