wp_scripts()

Initialize $wp_scripts if it has not been set.


Description Description


Return Return

(WP_Scripts) WP_Scripts instance.


Top ↑

Source Source

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

20
21
22
23
24
25
26
function wp_scripts() {
    global $wp_scripts;
    if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
        $wp_scripts = new WP_Scripts();
    }
    return $wp_scripts;
}

Top ↑

Changelog Changelog

Changelog
Version Description
4.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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