wp_scripts

Advertisement

Summery Summery

Initialize $wp_scripts if it has not been set.

Syntax Syntax

wp_scripts()

Return Return

(WP_Scripts) WP_Scripts instance.

Source Source

File: wp-includes/functions.wp-scripts.php

function wp_scripts() {
	global $wp_scripts;

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.