public function product_assets_delete($prod_id) { // verify we are in woocommerce product if (function_exists('get_product')) { $product = get_product($prod_id); if (isset($product->id) && (int) $product->id > 0) { require $this->cfg['paths']['plugin_dir_path'] . '/modules/assets_download/init.php'; $WooZoneLightAssetDownloadCron = new WooZoneLightAssetDownload(); return $WooZoneLightAssetDownloadCron->product_assets_delete($prod_id); } } }