WordPress at a glance
function is not described

wp_scripts() WP 4.2.0

Initialize $wp_scripts if it has not been set.

No Hooks.

Return

WP_Scripts. WP_Scripts instance.

Usage

wp_scripts();

Notes

  • Global. WP_Scripts. $wp_scripts

Changelog

Since 4.2.0 Introduced.

Code of wp_scripts() WP 5.7.2

<?php
function wp_scripts() {
	global $wp_scripts;

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

	return $wp_scripts;
}