WP_Style_Engine::is_valid_style_value( string $style_value ): bool

In this article

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

Parameters

$style_valuestringrequired
A single CSS preset value.

Return

bool

Source

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

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.