Astra_Cache_Base::inline_assets()

Enqueue the assets inline.


Description


Return

(boolean)


Source

File: classes/cache/class-astra-cache-base.php

	public static function inline_assets() {
		$inline                = false;
		$allow_file_generation = get_option( '_astra_file_generation', 'disable' );

		if ( ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) || ! astra_addon_filesystem()->can_access_filesystem()
			|| 'disable' === $allow_file_generation || is_customize_preview() ) {
			$inline = true;
		}

		return apply_filters( 'astra_load_dynamic_css_inline', $inline );
	}

Changelog

Changelog
Version Description
2.1.0 Introduced.


User Contributed Notes

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