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



wp-includes/block-supports/block-style-variations.php › WordPress File

Functions6
Block support to enable per-section styling of block types via block style variations.


Function Short description
wp_enqueue_block_style_variation_stylesEnqueues styles for block style variations.
wp_get_block_style_variation_name_from_classDetermines the block style variation names within a CSS class string.
wp_register_block_style_variations_from_theme_json_partialsRegisters block style variations read in from theme.json partials.
wp_render_block_style_variation_class_nameEnsures the variation block support class name generated and added to block attributes in the `render_block_data` filter gets applied to the block's markup.
wp_render_block_style_variation_support_stylesRenders the block style variation's styles.
wp_resolve_block_style_variation_ref_valuesRecursively resolves any `ref` values within a block style variation's data.