wordpress / latest / classes / wp_style_engine_css_declarations / sanitize_property.html

WP_Style_Engine_CSS_Declarations::sanitize_property( string $property ): string

Sanitizes property names.

Parameters

$property string Required
The CSS property.

Return

string The sanitized property name.

Source

File: wp-includes/style-engine/class-wp-style-engine-css-declarations.php. View all references

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

Uses

Uses Description

Changelog

Version Description
6.1.0 Introduced.

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