On this page
locale_stylesheet()
Displays localized stylesheet link element.
Source
File: wp-includes/theme.php. View all references
function locale_stylesheet() {
$stylesheet = get_locale_stylesheet_uri();
if ( empty( $stylesheet ) ) {
return;
}
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
printf(
'<link rel="stylesheet" href="%s"%s media="screen" />',
$stylesheet,
$type_attr
);
}
Related
Uses
| Uses | Description |
|---|---|
| get_locale_stylesheet_uri() wp-includes/theme.php | Retrieves the localized stylesheet URI. |
| current_theme_supports() wp-includes/theme.php | Checks a theme’s support for a given feature. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/locale_stylesheet