custom_css_minify

The Jetpack by WordPress.com custom css minify function.

Description

custom_css_minify( $css, (string) $preprocessor = '' ); 

Parameters (2)

0. $css
The css.
1. $preprocessor — Optional. (string) => ''
The preprocessor.

Usage

  1. if ( !function_exists( 'custom_css_minify' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/custom-css/custom-css.php'; 
  3.  
  4. // The css. 
  5. $css = null; 
  6.  
  7. // The preprocessor. 
  8. $preprocessor = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = custom_css_minify($css, $preprocessor); 
  12.  

Defined (1)

The function is defined in the following location(s).

/modules/custom-css/custom-css.php  
  1. function custom_css_minify( $css, $preprocessor = '' ) { 
  2. _deprecated_function( __FUNCTION__, '2.1', 'Jetpack_Custom_CSS::minify()' ); 
  3.  
  4. return Jetpack_Custom_CSS::minify( $css, $preprocessor );