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;
	}

Changelog

Changelog
Version Description
2.1.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.