wp_styles()WP 4.2.0

Initializes $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.

wp_styles() code WP 6.5.3

function wp_styles() {
	global $wp_styles;

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

	return $wp_styles;
}