Core Function
View Source on Trac ↗ wp_typography_get_preset_inline_style_value()
wp_typography_get_preset_inline_style_value( mixed $style_value, mixed $css_property ) Generates an inline style value for a typography feature e.g. text decoration,
Parameters 2 required
| Name / Type | Description |
|---|---|
| $style_value string | A raw style value for a single typography feature from a block's style attribute. Required |
| $css_property string | Slug for the CSS property the inline style sets. Required |
Return Value
(string)
A CSS inline style value.
Function Information
Since Version
6.1.0
Source File
wp-includes/block-supports/typography.php
Advertisement