wp-includes/class-wp-scripts.php:18Core class used to register scripts.
Every hook that fires from inside WP_Scripts, in the order it appears in the class, grouped by the method that fires it.
$base_urlstring|nullpublic$content_urlstring|nullpublic$default_versionstring|nullpublic$concatstringpublic$concat_versionstringpublic$do_concatboolpublic$print_htmlstringpublic$print_codestringpublic$ext_handlesstringpublic$ext_versionstringpublic$default_dirsstring[]|nullpublic$dependents_maparray<string,private$delayed_strategiesstring[]privateclass WP_Scripts extends WP_Dependencies { /** * Base URL for scripts. * * Full URL with trailing slash. * * @since 2.6.0 * @see wp_default_scripts() * @var string|null */ public $base_url; /** * URL of the content directory. * * @since 2.8.0 * @see wp_default_scripts() * @var string|null */ public $content_url; /** * Default version string for scripts. * * @since 2.6.0 * @see wp_default_scripts() * @var string|null */ public $default_version; /** * Holds handles of scripts which are enqueued in footer. * * @since 2.8.0 * @var string[] */ public $in_footer = array(); /** * Holds a list of script handles which will be concatenated. * * @since 2.8.0 * @var string */ public $concat = ''; /** * Holds a string which contains script handles and their version. * * @since 2.8.0 * @deprecated 3.4.0 * @var string */ public $concat_version = ''; /** * Whether to perform concatenation. * * @since 2.8.0 * @var bool */ public $do_concat = false; /** * Holds HTML markup of scripts and additional data if concatenation * is enabled. * * @since 2.8.0 * @var string */ public $print_html = ''; /** * Holds inline code if concatenation is enabled. * * @since 2.8.0 * @var string */ public $print_code = '';Introduced in 2.1.0. 3 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
is_valid_fetchpriority() added.verified against sourceget_highest_fetchpriority_with_dependents() added.verified against sourceget_dependency_warning_message() added.verified against sourcesrc/wp-includes/class-wp-scripts.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.