In this article

action

safecss_save_pre

Fires prior to saving custom css values. Necessitated because the core WordPress save_pre filters were removed: – content_save_pre – content_filtered_save_pre

Parameters

$args
array

{ Array of custom CSS arguments. @type string $css The CSS (or LESS or Sass). @type bool $is_preview Whether this CSS is preview or published. @type string preprocessor Which CSS preprocessor to use. @type bool $add_to_existing Whether this CSS replaces the theme's CSS or supplements it. @type int $content_width A custom $content_width to go along with this CSS. }

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.