WP_Style_Engine_CSS_Declarations::filter_declaration() – Filters a CSS property + value pair.
You appear to be a bot. Output may be restricted
Description
Filters a CSS property + value pair.
Usage
$string = WP_Style_Engine_CSS_Declarations::filter_declaration( $property, $value, $spacer );
Parameters
- $property
- ( string ) required – The CSS property.
- $value
- ( string ) required – The value to be filtered.
- $spacer
- ( string ) optional – The spacer between the colon and the value. Defaults to an empty string.
Returns
string The filtered declaration or an empty string.
Source
File name: wordpress/wp-includes/style-engine/class-wp-style-engine-css-declarations.php
Lines:
1 to 8 of 8
protected static function filter_declaration( $property, $value, $spacer = '' ) { $filtered_value = wp_strip_all_tags( $value, true ); if ( '' !== $filtered_value ) { return safecss_filter_attr( "{$property}:{$spacer}{$filtered_value}" ); } return ''; }