WordPress at Your Fingertips
filter is not described

safecss_filter_attr_allow_css filter-hook . WP 5.5.0

Filters the check for unsafe CSS in safecss_filter_attr.

Enables developers to determine whether a section of CSS should be allowed or discarded. By default, the value will be false if the part contains \ ( & } = or comments. Return true to allow the CSS part to be included in the output.


add_filter( 'safecss_filter_attr_allow_css', 'filter_function_name_4461', 10, 2 );
function filter_function_name_4461( $allow_css, $css_test_string ){
	// filter...

	return $allow_css;
Whether the CSS in the test string is considered safe.
The CSS string to test.

Where the hook is called

wp-includes/kses.php 2412
$allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string );

Where in WP core the hook is used WordPress

Usage not found.