Uses
Uses | Description |
---|---|
wp-includes/class.wp-scripts.php: WP_Scripts::__construct() | Constructor. |
Initialize $wp_scripts if it has not been set.
(WP_Scripts) WP_Scripts instance.
File: wp-includes/functions.wp-scripts.php
function wp_scripts() { global $wp_scripts; if ( ! ( $wp_scripts instanceof WP_Scripts ) ) { $wp_scripts = new WP_Scripts(); } return $wp_scripts; }
Version | Description |
---|---|
4.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_scripts