wp_styles(): WP_Styles

In this article

Initializes $wp_styles if it has not been set.

Return

WP_Styles WP_Styles instance.

Source

function wp_styles() {
	global $wp_styles;

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

	return $wp_styles;
}

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.