wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



safecss_filter_attr_allow_css › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string )
Parameter: (2)
  • (bool) $allow_css Whether the CSS in the test string is considered safe.
    Erforderlich: Ja
  • (string) $css_test_string The CSS string to test.
    Erforderlich: Ja
Definiert in:
Codex:

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.





Quellcode

$allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string );