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_filter | Initializes custom CSS content filters when imported data should be filtered. |
| wp_custom_css_kses_init | Registers the custom CSS content filters if the user does not have the edit_css capability. |
| wp_custom_css_kses_init_filters | Adds the filters to strip custom CSS from block content on save. |
| wp_custom_css_remove_filters | Removes the filters that strip custom CSS from block content on save. |
| wp_enqueue_block_custom_css | Enqueues the block custom CSS styles. |
| wp_register_custom_css_support | Registers the style block attribute for block types that support it. |
| wp_render_custom_css_class_name | Applies the custom CSS class name to the block's rendered HTML. |
| wp_render_custom_css_support_styles | Render the custom CSS stylesheet and add class name to block as required. |
| wp_strip_custom_css_from_blocks | Strips custom CSS (`style.css` in attributes) from all blocks in post content. |