W3cubDocs

/WordPress

WP_Style_Engine_CSS_Declarations::sanitize_property( string $property ): string

Sanitizes property names.

Parameters

$propertystringrequired
The CSS property.

Return

string The sanitized property name.

Source

protected function sanitize_property( $property ) {
	return sanitize_key( $property );
}

Changelog

Version Description
6.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_style_engine_css_declarations/sanitize_property