File: wp-includes/script-loader.php
-
Removes the current token.
-
Enqueues the assets required for the Command Palette.
-
Adds hooks to load block styles on demand in classic themes.
-
functionwp_hoist_late_printed_styles()
Adds the hooks needed for CSS output to be delayed until after the content of the page has been established.
-
functionwp_js_dataset_name()
Return the corresponding JavaScript `dataset` name for an attribute if it represents a custom data attribute, or `null` if not.
-
Returns a corresponding HTML attribute name for the given name, if that name were found in a JS element’s `dataset` property.
-
Gets the span for the current token.
-
Inserts text before the current token.
-
Inserts text after the current token.
-
classclass@anonymous
-
Filters the array of field name attributes for bulk actions.
-
Checks whether block styles should be loaded only on-render.
-
Filters whether block styles should be loaded on demand.
-
Removes leading and trailing _empty_ script tags.
-
Loads classic theme styles on classic themes in the frontend.
-
functionwp_enqueue_stored_styles()
Fetches, processes and compiles stored core styles, then combines and renders them to the page.
-
functionwp_filter_out_block_nodes()
Applies a filter to the list of style nodes that comes from WP_Theme_JSON::get_style_nodes().
-
Hooks inline styles in the proper place, depending on the active theme.
-
Registers development scripts that integrate with `@wordpress/scripts`.
-
Function that enqueues the CSS Custom Properties coming from theme.json.
-
Makes URLs relative to the WordPress installation.
-
functionwp_enqueue_block_style()
Enqueues a stylesheet for a specific block.
-
functionwp_maybe_inline_styles()
Allows small styles to be inlined.
-
The maximum size of inlined styles in bytes.
-
Enqueues the assets required for the format library within the block editor.
-
functionwp_enqueue_global_styles()
Enqueues the global styles defined via theme.json.
-
Checks whether separate styles should be loaded for core blocks.
-
Filters whether block styles should be loaded separately.
-
functionwp_get_inline_script_tag()
Constructs an inline script tag.
-
Filters attributes to be added to a script tag.