Sorts the given script module identifiers based on their dependencies.
Description
It will return a list of script module identifiers sorted in the order they should be printed, so that dependencies are printed before the script modules that depend on them.
Parameters
$idsstring[]
The identifiers of the script modules to sort.
$import_typesstring[]optional
Import types of dependencies to retrieve: 'static', 'dynamic', or both. Default is both.Default: array('static', 'dynamic')
Signature, return type and hooks compared across 3 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-script-modules.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.