custom_css_minify
The Jetpack by WordPress.com custom css minify function.
Description
Parameters (2)
- 0. $css
- The css.
- 1. $preprocessor — Optional. (string) =>
''
- The preprocessor.
Usage
if ( !function_exists( 'custom_css_minify' ) ) { require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/custom-css/custom-css.php'; } // The css. $css = null; // The preprocessor. $preprocessor = ''; // NOTICE! Understand what this does before running. $result = custom_css_minify($css, $preprocessor);
Defined (1)
The function is defined in the following location(s).
- /modules/custom-css/custom-css.php
- function custom_css_minify( $css, $preprocessor = '' ) {
- _deprecated_function( __FUNCTION__, '2.1', 'Jetpack_Custom_CSS::minify()' );
- return Jetpack_Custom_CSS::minify( $css, $preprocessor );
- }