wp_typography_get_preset_inline_style_value
wp_typography_get_preset_inline_style_value ( $style_value, $css_property )
Parameters:- (string) style_value A raw style value for a single typography feature from a block's style attribute.
- (string) css_property Slug for the CSS property the inline style sets.
Links:Returns:- (string) A CSS inline style value.
Defined at: - Introduced in WordPress: 6.1.0
- Deprecated in WordPress: —
Description
Generates an inline style value for a typography feature e.g. text decoration,
text transform, and font style.Note: This function is for backwards compatibility.
* It is necessary to parse older blocks whose typography styles contain presets.
* It mostly replaces the deprecated `wp_typography_get_css_variable_inline_style()`,
but skips compiling a CSS declaration as the style engine takes over this role.