WordPress at a glance
filter is not described

safe_style_css filter-hook . WP 2.8.1

Filters list of allowed CSS attributes.

Usage

add_filter( 'safe_style_css', 'filter_function_name_5833' );
function filter_function_name_5833( $attr ){
	// filter...

	return $attr;
}
$attr(array)
List of allowed CSS attributes.

Notes

  • Since 4.4.0 Added support for min-height, max-height, min-width, and max-width.
  • Since 4.6.0 Added support for list-style-type.
  • Since 5.0.0 Added support for background-image.

Where the hook is called

safecss_filter_attr()
safe_style_css
wp-includes/kses.php 1796-1866
$allowed_attr = apply_filters( 'safe_style_css', array(
	'background',
	'background-color',
	'background-image',

	'border',
	'border-width',
	'border-color',
	'border-style',
	'border-right',
	'border-right-color',
	'border-right-style',
	'border-right-width',
	'border-bottom',
	'border-bottom-color',
	'border-bottom-style',
	'border-bottom-width',
	'border-left',
	'border-left-color',
	'border-left-style',
	'border-left-width',
	'border-top',
	'border-top-color',
	'border-top-style',
	'border-top-width',

	'border-spacing',
	'border-collapse',
	'caption-side',

	'color',
	'font',
	'font-family',
	'font-size',
	'font-style',
	'font-variant',
	'font-weight',
	'letter-spacing',
	'line-height',
	'text-decoration',
	'text-indent',
	'text-align',

	'height',
	'min-height',
	'max-height',

	'width',
	'min-width',
	'max-width',

	'margin',
	'margin-right',
	'margin-bottom',
	'margin-left',
	'margin-top',

	'padding',
	'padding-right',
	'padding-bottom',
	'padding-left',
	'padding-top',

	'clear',
	'cursor',
	'direction',
	'float',
	'overflow',
	'vertical-align',
	'list-style-type',
) );

Where the hook is used (in WP core)

Does not used.