WordPress at a glance
function is not described

wp_scripts() WP 4.2.0

Initialize $wp_scripts if it has not been set.

  • Global. WP_Scripts. $wp_scripts

No Hooks.

Return

WP_Scripts. WP_Scripts instance.

Usage

wp_scripts();

Code of wp scripts: wp-includes/functions.wp-scripts.php WP 5.2.2

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