Core Function
View Source on Trac ↗ wp_get_global_stylesheet()
wp_get_global_stylesheet( mixed $types = array() ) Returns the stylesheet resulting of merging core, theme, and user data.
Parameters 1 required
| Name / Type | Description |
|---|---|
| array | $types Optional. Types of styles to load. See {@see 'WP_Theme_JSON::get_stylesheet'} for all valid types. If empty, it'll load the following: - for themes without theme.json: 'variables', 'presets', 'base-layout-styles'. - for themes with theme.json: 'variables', 'presets', 'styles'. Required |
Return Value
(string)
Stylesheet.
Function Information
Since Version
5.9.0
Source File
wp-includes/global-styles-and-settings.php
Advertisement