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:

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.

Related Functions

wp_typography_get_css_variable_inline_style, wp_get_typography_font_size_value, wp_maybe_inline_styles, wp_add_inline_style, rest_get_best_type_for_value

Top Google Results

User discussions

wpseek mobile