safe_style_css WordPress Filter Hook
The safe_style_css Wordpress hook is used to filter out unsafe CSS code from being executed on a WordPress site. This is useful for ensuring that malicious code cannot be injected into a WordPress site through the use of CSS.
apply_filters( 'safe_style_css', string[] $attr ) #
Filters the list of allowed CSS attributes.
Parameters
- $attr
(string[])Array of allowed CSS attributes.
Source
File: wp-includes/kses.php
Changelog
Version | Description |
---|---|
2.8.1 | Introduced. |