New and updated in 6.5.0
-
Filters the script module source.
-
Prints the 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.
-
Retrieves all the dependencies for the given script module identifiers, filtered by import types.
-
Prints the enqueued script modules using script tags with type=”module” attributes.
-
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.
-
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.
-
Inject ignoredHookedBlocks metadata attributes into a template or template part.
-
Invalidate the cache for .mo files.
-
Retrieves translation files from the specified path.
-
Filters the translation files retrieved from a specified path before the actual lookup.
-
Initializes the registry.
-
Returns whether the REST server is currently dispatching / responding to a request.
-
Handles the upload of a font file using wp_handle_upload().
Used by 1 function | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:857 -
Handles file upload error.
Used by 0 functions | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:892 -
Returns relative path to an uploaded font file.
Used by 1 function | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:915 -
Gets the font face’s settings from the post.
Used by 1 function | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:935 -
Get the params used when creating a new font face.
Used by 1 function | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:739 -
Get the parent font family, if the ID is valid.
Used by 4 functions | Uses 2 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:763 -
Prepares links for the request.
Used by 1 function | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:793 -
Prepares a single font face post for creation.
Used by 0 functions | Uses 3 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:816 -
Sanitizes a single src value for a font face.
Used by 1 function | Uses 2 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:844 -
Retrieves the post’s schema, conforming to JSON Schema.
Used by 4 functions | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:493 -
Retrieves the item’s schema for display / public consumption purposes.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php:684