WordPress at a glance
function is not described

wp_styles() WP 4.2.0

Initialize $wp_styles if it has not been set.

No Hooks.

Return

WP_Styles. WP_Styles instance.

Usage

wp_styles();

Notes

  • Global. WP_Styles. $wp_styles

Changelog

Since 4.2.0 Introduced.

Code of wp_styles() WP 5.7.2

<?php
function wp_styles() {
	global $wp_styles;

	if ( ! ( $wp_styles instanceof WP_Styles ) ) {
		$wp_styles = new WP_Styles();
	}

	return $wp_styles;
}