wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_admin_css › WordPress Function
Since2.3.0
Deprecatedn/a
› wp_admin_css ( $file = 'wp-admin', $force_echo = false )
| Parameters: (2) |
|
| Defined at: |
|
| Codex: |
Enqueues or directly prints a stylesheet link to the specified CSS file.
"Intelligently" decides to enqueue or to print the CSS file. If the {@see 'wp_print_styles'} action has not yet been called, the CSS file will be enqueued. If the {@see 'wp_print_styles'} action has been called, the CSS link will be printed. Printing may be forced by passing true as the $force_echo (second) parameter. For backward compatibility with WordPress 2.3 calling method: If the $file (first) parameter does not correspond to a registered CSS file, we assume $file is a file relative to wp-admin/ without its ".css" extension. A stylesheet link to that generated URL is printed.Related Functions: wp_admin_css_uri, wp_admin_css_color, wp_admin_notice, wp_admin_headers, print_admin_styles