File: wp-includes/class-wp-script-modules.php
-
Gets all dependents of a script module.
-
Gets all recursive dependents of a script module.
-
Sorts the given script module identifiers based on their dependencies.
-
Recursively sorts the dependencies for a single script module identifier.
-
Gets the highest fetch priority for the provided script IDs.
-
Prints the enqueued script modules in head.
-
Prints the enqueued script module using script tags with type=”module” attributes.
-
Gets IDs for queued script modules.
-
Checks if the provided fetchpriority is valid.
-
Sets the fetch priority for a script module.
-
Sets whether a script module should be printed in the footer.
-
-
Filters data associated with a given Script Module.
-
Print data associated with Script Modules.
-
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 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 in footer.
-
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.