wp_normalize_state_style_for_css_output()
Normalizes a state style object before generating CSS declarations.
No Hooks.
Returns
array. Normalized state style object.
Usage
wp_normalize_state_style_for_css_output( $style );
- $style(array) (required)
- State style object.
Changelog
| Since 7.1.0 | Introduced. |
wp_normalize_state_style_for_css_output() wp normalize state style for css output code WP 7.1
function wp_normalize_state_style_for_css_output( $style ) {
// Layout is processed separately by wp_render_layout_support_flag(), so we remove it before declaration generation.
unset( $style['layout'] );
$style = wp_normalize_state_preset_vars( $style );
return $style;
}