wp_scripts(): WP_Scripts

Initializes $wp_scripts if it has not been set.


Return

WP_Scripts WP_Scripts instance.


Top ↑

Source

File: wp-includes/functions.wp-scripts.php. View all references

function wp_scripts() {
	global $wp_scripts;

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

	return $wp_scripts;
}


Top ↑

Changelog

Changelog
Version Description
4.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.