Astra_Cache_Base::get_css_from_files( Array $dynamic_css_files )
Append CSS style to the theme dynamic css.
Description
Parameters
- $dynamic_css_files
-
(Array) (Required) Array of file paths to be to be added to minify cache.
Return
(String) CSS from the CSS files passed.
Source
File: classes/cache/class-astra-cache-base.php
public function get_css_from_files( $dynamic_css_files ) { $dynamic_css_data = ''; foreach ( $dynamic_css_files as $key => $value ) { // Get file contents. $get_contents = astra_addon_filesystem()->get_contents( $value ); if ( $get_contents ) { $dynamic_css_data .= $get_contents; } } return $dynamic_css_data; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |