A WordPress-centric search engine for devs and theme authors



wp_scripts ›

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

Initialize $wp_scripts if it has not been set.



Source

function wp_scripts() {
	global $wp_scripts;
	if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
		$wp_scripts = new WP_Scripts();
	}
	return $wp_scripts;
}