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.
$allow_cssbool
$css_test_stringstring
$allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string );
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/safecss_filter_attr_allow_css