wp_hoist_late_printed_styles()wp-includes/script-loader.php | Adds the hooks needed for CSS output to be delayed until after the content of the page has been established.
|
wp_enqueue_img_auto_sizes_contain_css_fix()wp-includes/media.php | Enqueues a CSS rule to fix potential visual issues with images using sizes=auto.
|
WP_Interactivity_API::data_wp_router_region_processor()wp-includes/interactivity-api/class-wp-interactivity-api.php | Processes the data-wp-router-region directive.
|
wp_enqueue_emoji_styles()wp-includes/formatting.php | Enqueues the important emoji-related styles.
|
wp_enqueue_admin_bar_bump_styles()wp-includes/admin-bar.php | Enqueues inline bump styles to make room for the admin bar.
|
wp_enqueue_admin_bar_header_styles()wp-includes/admin-bar.php | Enqueues inline style to hide the admin bar when printing.
|
wp_enqueue_embed_styles()wp-includes/embed.php | Enqueues the CSS in the embed iframe header.
|
wp_enqueue_block_template_skip_link()wp-includes/theme-templates.php | Enqueues the skip-link script & styles.
|
WP_Duotone::output_global_styles()wp-includes/class-wp-duotone.php | Appends the used global style duotone filter presets (CSS custom properties) to the inline global styles CSS.
|
WP_Duotone::output_footer_assets()wp-includes/class-wp-duotone.php | Outputs all necessary SVG for duotone filters, CSS for classic themes.
|
wp_enqueue_global_styles_custom_css()wp-includes/deprecated.php | Enqueues the global styles custom css defined via theme.json.
|
wp_enqueue_stored_styles()wp-includes/script-loader.php | Fetches, processes and compiles stored core styles, then combines and renders them to the page.
|
wp_add_global_styles_for_blocks()wp-includes/global-styles-and-settings.php | Adds global style rules to the inline style for each block.
|
_wp_theme_json_webfonts_handler()wp-includes/deprecated.php | Runs the theme.json webfonts handler.
|
wp_enqueue_global_styles_css_custom_properties()wp-includes/script-loader.php | Function that enqueues the CSS Custom Properties coming from theme.json.
|
wp_enqueue_global_styles()wp-includes/script-loader.php | Enqueues the global styles defined via theme.json.
|
enqueue_block_styles_assets()wp-includes/script-loader.php | Function responsible for enqueuing the styles required for block styles functionality on the editor and on the frontend.
|
Example
wp_add_inline_styleallows you to print extra styling whenever a certain stylesheet is loaded. For instance suppose a plug-in or theme makes use of the class.mycolorin a stylesheet to set a background color. This can be over-ridden by a user chosen color, stored in the database by usingwp_add_inline_styleto print the extra styling.