WordPress at Your Fingertips
function is not described

WooCommerce::build_dependencies_satisfied() public WC 1.0

Check if plugin assets are built and minified

{} It's a method of the class: WooCommerce{}

No Hooks.

Return

true|false.

Usage

$WooCommerce = new WooCommerce();
$WooCommerce->build_dependencies_satisfied();

Code of WooCommerce::build_dependencies_satisfied() WC 5.6.0

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