Title: wp-includes/script-modules.php | Developer.WordPress.org

---

# File: wp-includes/script-modules.php

 * function[wp_enqueue_block_editor_script_modules()](https://developer.wordpress.org/reference/functions/wp_enqueue_block_editor_script_modules/)
 * Enqueues script modules required by the block editor.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_enqueue_block_editor_script_modules/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_enqueue_block_editor_script_modules/#uses)
   | Source: [wp-includes/script-modules.php:234](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L234-L240)
 * function[wp_set_script_module_translations()](https://developer.wordpress.org/reference/functions/wp_set_script_module_translations/)
 * Overrides the text domain and path used to load translations for a script module.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_set_script_module_translations/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_set_script_module_translations/#uses)
   | Source: [wp-includes/script-modules.php:158](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L158-L160)
 * function[wp_default_script_modules()](https://developer.wordpress.org/reference/functions/wp_default_script_modules/)
 * Registers all the default WordPress Script Modules.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_default_script_modules/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_default_script_modules/#uses)
   | Source: [wp-includes/script-modules.php:167](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L167-L227)
 * function[wp_deregister_script_module()](https://developer.wordpress.org/reference/functions/wp_deregister_script_module/)
 * Deregisters the script module.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_deregister_script_module/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_deregister_script_module/#uses)
   | Source: [wp-includes/script-modules.php:137](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L137-L139)
 * function[wp_script_modules()](https://developer.wordpress.org/reference/functions/wp_script_modules/)
 * Retrieves the main WP_Script_Modules instance.
 * Used by [9 functions](https://developer.wordpress.org/reference/functions/wp_script_modules/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_script_modules/#uses)
   | Source: [wp-includes/script-modules.php:23](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L23-L31)
 * function[wp_register_script_module()](https://developer.wordpress.org/reference/functions/wp_register_script_module/)
 * Registers the script module if no script module with that script module identifier
   has already been registered.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/wp_register_script_module/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_register_script_module/#uses)
   | Source: [wp-includes/script-modules.php:71](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L71-L73)
 * function[wp_enqueue_script_module()](https://developer.wordpress.org/reference/functions/wp_enqueue_script_module/)
 * Marks the script module to be enqueued in the page.
 * Used by [6 functions](https://developer.wordpress.org/reference/functions/wp_enqueue_script_module/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_enqueue_script_module/#uses)
   | Source: [wp-includes/script-modules.php:115](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L115-L117)
 * function[wp_dequeue_script_module()](https://developer.wordpress.org/reference/functions/wp_dequeue_script_module/)
 * Unmarks the script module so it is no longer enqueued in the page.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_dequeue_script_module/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_dequeue_script_module/#uses)
   | Source: [wp-includes/script-modules.php:126](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/script-modules.php#L126-L128)