Title: wp-includes/class-wp-scripts.php | Developer.WordPress.org

---

# File: wp-includes/class-wp-scripts.php

 * method[WP_Scripts::get_highest_fetchpriority_with_dependents()](https://developer.wordpress.org/reference/classes/wp_scripts/get_highest_fetchpriority_with_dependents/)
 * Gets the highest fetch priority for a given script and all of its dependent scripts.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_highest_fetchpriority_with_dependents/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_highest_fetchpriority_with_dependents/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1152](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1152-L1199)
 * method[WP_Scripts::get_dependency_warning_message()](https://developer.wordpress.org/reference/classes/wp_scripts/get_dependency_warning_message/)
 * Gets a script-specific dependency warning message.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_dependency_warning_message/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_dependency_warning_message/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1242](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1242-L1249)
 * method[WP_Scripts::is_valid_fetchpriority()](https://developer.wordpress.org/reference/classes/wp_scripts/is_valid_fetchpriority/)
 * Checks if the provided fetchpriority is valid.
 * Used by [3 functions](https://developer.wordpress.org/reference/classes/wp_scripts/is_valid_fetchpriority/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/is_valid_fetchpriority/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1032](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1032-L1034)
 * method[WP_Scripts::are_all_dependents_in_footer()](https://developer.wordpress.org/reference/classes/wp_scripts/are_all_dependents_in_footer/)
 * Checks whether all dependents of a given handle are in the footer.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/are_all_dependents_in_footer/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/are_all_dependents_in_footer/#uses)
   | Source: [wp-includes/class-wp-scripts.php:262](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L262-L269)
 * method[WP_Scripts::add_data()](https://developer.wordpress.org/reference/classes/wp_scripts/add_data/)
 * This overrides the add_data method from WP_Dependencies, to support normalizing
   of $args.
 * Used by [7 functions](https://developer.wordpress.org/reference/classes/wp_scripts/add_data/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/classes/wp_scripts/add_data/#uses)
   | Source: [wp-includes/class-wp-scripts.php:866](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L866-L975)
 * method[WP_Scripts::get_dependents()](https://developer.wordpress.org/reference/classes/wp_scripts/get_dependents/)
 * Gets all dependents of a script.
 * Used by [3 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_dependents/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_dependents/#uses)
   | Source: [wp-includes/class-wp-scripts.php:987](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L987-L1006)
 * method[WP_Scripts::is_delayed_strategy()](https://developer.wordpress.org/reference/classes/wp_scripts/is_delayed_strategy/)
 * Checks if the strategy passed is a valid delayed (non-blocking) strategy.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/is_delayed_strategy/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/is_delayed_strategy/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1016](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1016-L1022)
 * method[WP_Scripts::get_eligible_loading_strategy()](https://developer.wordpress.org/reference/classes/wp_scripts/get_eligible_loading_strategy/)
 * Gets the best eligible loading strategy for a script.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/get_eligible_loading_strategy/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/get_eligible_loading_strategy/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1044](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1044-L1066)
 * method[WP_Scripts::filter_eligible_strategies()](https://developer.wordpress.org/reference/classes/wp_scripts/filter_eligible_strategies/)
 * Filter the list of eligible loading strategies for a script.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/filter_eligible_strategies/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_scripts/filter_eligible_strategies/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1079](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1079-L1138)
 * method[WP_Scripts::has_inline_script()](https://developer.wordpress.org/reference/classes/wp_scripts/has_inline_script/)
 * Gets data for inline scripts registered for a specific handle.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/has_inline_script/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/has_inline_script/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1210](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1210-L1216)
 * method[WP_Scripts::get_unaliased_deps()](https://developer.wordpress.org/reference/classes/wp_scripts/get_unaliased_deps/)
 * Gets unaliased dependencies.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_unaliased_deps/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_unaliased_deps/#uses)
   | Source: [wp-includes/class-wp-scripts.php:538](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L538-L552)
 * method[WP_Scripts::get_inline_script_tag()](https://developer.wordpress.org/reference/classes/wp_scripts/get_inline_script_tag/)
 * Gets tags for inline scripts registered for a specific handle.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_inline_script_tag/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_inline_script_tag/#uses)
   | Source: [wp-includes/class-wp-scripts.php:604](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L604-L613)
 * method[WP_Scripts::get_inline_script_data()](https://developer.wordpress.org/reference/classes/wp_scripts/get_inline_script_data/)
 * Gets data for inline scripts registered for a specific handle.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_inline_script_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/get_inline_script_data/#uses)
   | Source: [wp-includes/class-wp-scripts.php:573](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L573-L591)
 * method[WP_Scripts::set_translations()](https://developer.wordpress.org/reference/classes/wp_scripts/set_translations/)
 * Sets a translation textdomain.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/set_translations/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/set_translations/#uses)
   | Source: [wp-includes/class-wp-scripts.php:718](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L718-L731)
 * method[WP_Scripts::print_translations()](https://developer.wordpress.org/reference/classes/wp_scripts/print_translations/)
 * Prints translations set for a specific handle.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/print_translations/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/print_translations/#uses)
   | Source: [wp-includes/class-wp-scripts.php:744](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L744-L777)
 * method[WP_Scripts::add_inline_script()](https://developer.wordpress.org/reference/classes/wp_scripts/add_inline_script/)
 * Adds extra code to a registered script.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/add_inline_script/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/add_inline_script/#uses)
   | Source: [wp-includes/class-wp-scripts.php:519](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L519-L532)
 * method[WP_Scripts::print_inline_script()](https://developer.wordpress.org/reference/classes/wp_scripts/print_inline_script/)
 * Prints inline scripts registered for a specific handle.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/print_inline_script/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_scripts/print_inline_script/#uses)
   | Source: [wp-includes/class-wp-scripts.php:548](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L548-L560)
 * hook[script_loader_tag](https://developer.wordpress.org/reference/hooks/script_loader_tag/)
 * Filters the HTML script tag of an enqueued script.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/script_loader_tag/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/script_loader_tag/#uses)
   | Source: [wp-includes/class-wp-scripts.php:496](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L496-L496)
 * method[WP_Scripts::do_head_items()](https://developer.wordpress.org/reference/classes/wp_scripts/do_head_items/)
 * Processes items and dependencies for the head group.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/do_head_items/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/do_head_items/#uses)
   | Source: [wp-includes/class-wp-scripts.php:817](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L817-L820)
 * method[WP_Scripts::do_footer_items()](https://developer.wordpress.org/reference/classes/wp_scripts/do_footer_items/)
 * Processes items and dependencies for the footer group.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/do_footer_items/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/do_footer_items/#uses)
   | Source: [wp-includes/class-wp-scripts.php:831](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L831-L834)
 * method[WP_Scripts::in_default_dir()](https://developer.wordpress.org/reference/classes/wp_scripts/in_default_dir/)
 * Whether a handle’s source is in a default directory.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/in_default_dir/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/in_default_dir/#uses)
   | Source: [wp-includes/class-wp-scripts.php:844](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L844-L854)
 * method[WP_Scripts::reset()](https://developer.wordpress.org/reference/classes/wp_scripts/reset/)
 * Resets class properties.
 * Used by [3 functions](https://developer.wordpress.org/reference/classes/wp_scripts/reset/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/reset/#uses)
   | Source: [wp-includes/class-wp-scripts.php:1223](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L1223-L1231)
 * method[WP_Scripts::do_item()](https://developer.wordpress.org/reference/classes/wp_scripts/do_item/)
 * Processes a script dependency.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/do_item/#used-by)
   | Uses [15 functions](https://developer.wordpress.org/reference/classes/wp_scripts/do_item/#uses)
   | Source: [wp-includes/class-wp-scripts.php:284](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L284-L505)
 * hook[script_loader_src](https://developer.wordpress.org/reference/hooks/script_loader_src/)
 * Filters the script loader source.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/script_loader_src/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/script_loader_src/#uses)
   | Source: [wp-includes/class-wp-scripts.php:378](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L378-L378)
 * method[WP_Scripts::localize()](https://developer.wordpress.org/reference/classes/wp_scripts/localize/)
 * Localizes a script, only if the script has already been added.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/localize/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_scripts/localize/#uses)
   | Source: [wp-includes/class-wp-scripts.php:625](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L625-L678)
 * method[WP_Scripts::set_group()](https://developer.wordpress.org/reference/classes/wp_scripts/set_group/)
 * Sets handle group.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/set_group/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/set_group/#uses)
   | Source: [wp-includes/class-wp-scripts.php:693](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L693-L705)
 * method[WP_Scripts::all_deps()](https://developer.wordpress.org/reference/classes/wp_scripts/all_deps/)
 * Determines script dependencies.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/all_deps/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/all_deps/#uses)
   | Source: [wp-includes/class-wp-scripts.php:793](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L793-L806)
 * hook[print_scripts_array](https://developer.wordpress.org/reference/hooks/print_scripts_array/)
 * Filters the list of script dependencies left to print.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/print_scripts_array/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/print_scripts_array/#uses)
   | Source: [wp-includes/class-wp-scripts.php:803](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L803-L803)
 * class[WP_Scripts](https://developer.wordpress.org/reference/classes/wp_scripts/)
 * Core class used to register scripts.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/#uses)
   | Source: [wp-includes/class-wp-scripts.php:18](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L18-L1250)
 * method[WP_Scripts::__construct()](https://developer.wordpress.org/reference/classes/wp_scripts/__construct/)
 * Constructor.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/__construct/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_scripts/__construct/#uses)
   | Source: [wp-includes/class-wp-scripts.php:152](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L152-L155)

1 [2](https://developer.wordpress.org/reference/file/wp-includes_class-wp-scripts-php-2/page/2/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/file/wp-includes_class-wp-scripts-php-2/page/2/?output_format=md)