[wp-trac] [WordPress Trac] #64111: Add `wp_script_module_attributes` filter to `print_enqueued_script_modules` to allow modifying script attributes
WordPress Trac
noreply at wordpress.org
Fri Oct 17 12:49:32 UTC 2025
#64111: Add `wp_script_module_attributes` filter to `print_enqueued_script_modules`
to allow modifying script attributes
-------------------------+-----------------------------
Reporter: samueljseay | Owner: samueljseay
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
In https://github.com/WordPress/gutenberg/issues/70873 we find the need to
selectively pre-load script modules for client side navigation with
interactivity API's router to ensure that we don't load modules that are
not needed.
To that end we will add a filter called `wp_script_module_attributes` in
`print_enqueued_script_modules` to allow the augmenting of script
attributes before printing them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64111>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list