wp-includes/class-wp-styles.php:18Core class used to register styles.
Every hook that fires from inside WP_Styles, in the order it appears in the class, grouped by the method that fires it.
$base_urlstring|nullpublic$content_urlstring|nullpublic$default_versionstring|nullpublic$text_directionstringpublic$concatstringpublic$concat_versionstringpublic$do_concatboolpublic$print_htmlstringpublic$print_codestringpublic$default_dirsstring[]|nullpublicclass WP_Styles extends WP_Dependencies { /** * Base URL for styles. * * Full URL with trailing slash. * * @since 2.6.0 * @see wp_default_styles() * @var string|null */ public $base_url; /** * URL of the content directory. * * @since 2.8.0 * @see wp_default_styles() * @var string|null */ public $content_url; /** * Default version string for stylesheets. * * @since 2.6.0 * @see wp_default_styles() * @var string|null */ public $default_version; /** * The current text direction. * * @since 2.6.0 * @see wp_default_styles() * @var string */ public $text_direction = 'ltr'; /** * Holds a list of style handles which will be concatenated. * * @since 2.8.0 * @var string */ public $concat = ''; /** * Holds a string which contains style handles and their version. * * @since 2.8.0 * @deprecated 3.4.0 * @var string */ public $concat_version = ''; /** * Whether to perform concatenation. * * @since 2.8.0 * @var bool */ public $do_concat = false; /** * Holds HTML markup of styles and additional data if concatenation * is enabled. * * @since 2.8.0 * @var string */ public $print_html = ''; /** * Holds inline styles if concatenation is enabled. * * @since 3.3.0 * @var string */ public $print_code = '';Introduced in 2.6.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
add_data() added.verified against sourceget_dependency_warning_message() added.verified against sourcesrc/wp-includes/class-wp-styles.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.