wpseek.com
A WordPress-centric search engine for devs and theme authors



wp-includes/block-supports/custom-css.php › WordPress File

Functions9
Custom CSS block support.


Function Short description
wp_custom_css_force_filtered_html_on_import_filterInitializes custom CSS content filters when imported data should be filtered.
wp_custom_css_kses_initRegisters the custom CSS content filters if the user does not have the edit_css capability.
wp_custom_css_kses_init_filtersAdds the filters to strip custom CSS from block content on save.
wp_custom_css_remove_filtersRemoves the filters that strip custom CSS from block content on save.
wp_enqueue_block_custom_cssEnqueues the block custom CSS styles.
wp_register_custom_css_supportRegisters the style block attribute for block types that support it.
wp_render_custom_css_class_nameApplies the custom CSS class name to the block's rendered HTML.
wp_render_custom_css_support_stylesRender the custom CSS stylesheet and add class name to block as required.
wp_strip_custom_css_from_blocksStrips custom CSS (`style.css` in attributes) from all blocks in post content.