티스토리 수익 글 보기
apply_filters( ‘safecss_filter_attr_allow_css’, bool $allow_css , string $css_test_string )
Filters the check for unsafe CSS in safecss_filter_attr.
Description
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.
Parameters
$allow_cssbool- Whether the CSS in the test string is considered safe.
$css_test_stringstring- The CSS string to test.
Source
$allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.