Jetpack_Custom_CSS_Enhancements::skip_stylesheet PHP Method

skip_stylesheet() static public method

Determine whether or not we should have the theme skip its main stylesheet.
static public skip_stylesheet ( ) : mixed
return mixed The truthiness of this value determines whether the stylesheet should be skipped.
    static function skip_stylesheet()
    {
        /** This filter is documented in modules/custom-css/custom-css.php */
        $skip_stylesheet = apply_filters('safecss_skip_stylesheet', null);
        if (!is_null($skip_stylesheet)) {
            return $skip_stylesheet;
        }
        $jetpack_custom_css = get_theme_mod('jetpack_custom_css', array());
        if (isset($jetpack_custom_css['replace'])) {
            return $jetpack_custom_css['replace'];
        }
        return false;
    }