WordPress at Your Fingertips
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

Code of wp_styles() WP 5.8.3

function wp_styles() {
	global $wp_styles;

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

	return $wp_styles;
}