A WordPress-centric search engine for devs and theme authors



wp_styles ›

Since4.2.0
Deprecatedn/a
wp_styles ( No parameters )
Returns:
  • (WP_Styles) WP_Styles instance.
Defined at:
Codex:

Initialize $wp_styles if it has not been set.



Source

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