safecss_filter_attr


safecss_filter_attr ( $css, $deprecated = '' )

Parameters:
  • (string) css A string of CSS rules.
  • (string) deprecated Not used.
Returns:
  • (string) Filtered string of CSS rules.
Defined at:
Change Log:
  • 4: .
  • 4: .
  • 5: .
  • 5: .
  • 5: .
  • 5: .
  • 5: .
  • 5: .
  • 5: .
  • 6: .
  • 6: .
  • 6: .
  • 6: .
  • 6: .

Description

Filters an inline style attribute and removes disallowed rules.

Related Functions

has_filter, wp_kses_one_attr, get_file_data, kses_init_filters, add_filter

Top Google Results

User discussions

wpseek mobile