Glossary Term
register_block_script_handle()
register_block_script_handle() — Finds a script handle for the selected block metadata field. Detects when a path to a file was provided and optionally finds a corresponding asset file with details necessary to register the script. The handle is taken from the asset file when it provides one, and is otherwise generated automatically. It returns the unprocessed script handle when a handle rather than a path was given.
Inputs: $metadata (array): Block metadata. $field_name (string): Field name to pick from metadata. $index (int): Optional. Index of the script to register when multiple items passed. Default 0.
Returns string|false: Script handle provided directly or created through script’s registration, or false on failure.
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…
