WP_Style_Engine_CSS_Declarations::sanitize_property()protectedWP 6.1.0

Sanitizes property names.

Method of the class: WP_Style_Engine_CSS_Declarations{}

No Hooks.

Return

String. The sanitized property name.

Usage

// protected - for code of main (parent) or child class
$result = $this->sanitize_property( $property );
$property(string) (required)
The CSS property.

Changelog

Since 6.1.0 Introduced.

WP_Style_Engine_CSS_Declarations::sanitize_property() code WP 6.7.1

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