File: wp-includes/class-wp-script-modules.php
-
Gets the versioned URL for a script module src.
-
Filters the script module source.
-
Retrieves all the dependencies for the given script module identifiers, filtered by import types.
-
Prints the the static dependencies of the enqueued script modules using link tags with rel=”modulepreload” attributes.
-
Prints the import map using a script tag with a type=”importmap” attribute.
-
Returns the import map array.
-
Retrieves the list of script modules marked for enqueue.
-
Unmarks the script module so it will no longer be enqueued in the page.
-
Removes a registered script module.
-
Adds the hooks to print the import map, enqueued script modules and script module preloads.
-
Prints the enqueued script modules using script tags with type=”module” attributes.
-
classWP_Script_Modules
Core class used to register script modules.
-
Registers the script module if no script module with that script module identifier has already been registered.
-
Marks the script module to be enqueued in the page.