WP_Style_Engine::is_valid_style_value()protected staticWP 6.1.0

Util: Checks whether an incoming block style value is valid.

Method of the class: WP_Style_Engine{}

No Hooks.

Return

true|false.

Usage

$result = WP_Style_Engine::is_valid_style_value( $style_value );
$style_value(string) (required)
A single CSS preset value.

Changelog

Since 6.1.0 Introduced.

WP_Style_Engine::is_valid_style_value() code WP 6.5.4

protected static function is_valid_style_value( $style_value ) {
	return '0' === $style_value || ! empty( $style_value );
}