wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_scripts › WordPress Function

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

Initializes $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;
}