do_action ( 'safecss_save_pre', array $args )

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

Source file: modules/custom-css/custom-css.php

View in GitHub



(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. }


Since: Jetpack 1.7.0

Have a question about this article?

Comments are currently closed for this article, but rest assured we're still here to help! Send us a message and we'll get back to you.

Contact us