On this page
WP_Style_Engine_CSS_Declarations::sanitize_property( string $property ): string
Sanitizes property names.
Parameters
$propertystring 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 );
}
Related
Uses
| Uses | Description |
|---|---|
| sanitize_key() wp-includes/formatting.php | Sanitizes a string key. |
Used By
| Used By | Description |
|---|---|
| WP_Style_Engine_CSS_Declarations::add_declaration() wp-includes/style-engine/class-wp-style-engine-css-declarations.php | Adds a single declaration. |
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