Astra_Enqueue_Scripts::should_load_woocommerce_js()

Check if WooCommerce JS assets should be loaded based on filter settings


Description


Return

(bool) Whether WooCommerce JS should be loaded


Source

File: inc/core/class-astra-enqueue-scripts.php

		public static function should_load_woocommerce_js() {
			// Allow users to disable WooCommerce JS loading on specific pages/posts/post types
			return apply_filters( 'astra_load_woocommerce_js', true );
		}

Changelog

Changelog
Version Description
4.11.13 Introduced.


User Contributed Notes

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