WooCommerce::build_dependencies_satisfied()
Check if plugin assets are built and minified
Method of the class: WooCommerce{}
No Hooks.
Return
true|false
.
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->build_dependencies_satisfied();
WooCommerce::build_dependencies_satisfied() WooCommerce::build dependencies satisfied code WC 9.2.3
public function build_dependencies_satisfied() { // Check if we have compiled CSS. if ( ! file_exists( WC()->plugin_path() . '/assets/css/admin.css' ) ) { return false; } // Check if we have minified JS. if ( ! file_exists( WC()->plugin_path() . '/assets/js/admin/woocommerce_admin.min.js' ) ) { return false; } return true; }