public function get_asset_multiple($nb_dw = 'all', $inprogress = false, $include_err = false) { require $this->the_plugin->cfg['paths']['plugin_dir_path'] . '/modules/assets_download/init.php'; $WooZoneLightAssetDownloadCron = new WooZoneLightAssetDownload(); return $WooZoneLightAssetDownloadCron->get_asset_multiple($nb_dw, $inprogress, $include_err); }
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); } } }