WP_Style_Engine::is_valid_style_value() – Util: Checks whether an incoming block style value is valid.
You appear to be a bot. Output may be restricted
Description
Util: Checks whether an incoming block style value is valid.
Usage
$bool = WP_Style_Engine::is_valid_style_value( $style_value );
Parameters
- $style_value
- ( string ) required – A single CSS preset value.
Returns
bool
Source
File name: wordpress/wp-includes/style-engine/class-wp-style-engine.php
Lines:
1 to 4 of 4
protected static function is_valid_style_value( $style_value ) { return '0' === $style_value || ! empty( $style_value ); }