Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_enqueue_script_module()

3 tags 1 category

wp_enqueue_script_module() — Marks the script module to be enqueued in the page. If a src is provided and the script module has not been registered yet, it will be registered.

Inputs: $id (string): The identifier of the script module. Should be unique. It will be used in the final import map. $src (string): Optional. Full URL of the script module, or path of the script module relative to the WordPress root directory. If it is provided and the script module has not been registered yet, it will be registered. $version (string|false|null): Optional. String specifying the script module version number. Defaults to false. It is added to the URL as a query string for cache busting purposes. If $version is set to false, the version number is the currently installed WordPress version. If $version is set to null, no version is added.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…