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 );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.11.13 | Introduced. |