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.


Top ↑

Source

File: wp-includes/kses.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.