HPOS issue with custom bulk actions
-
Hi there,
I’ve enabled HPOS mode on a clients site, however we’re facing some issues now. We have a couple of custom bulk actions registered. But the DHL plugin seems to capture them.
class-dhlpwc-controller-admin-order.php:23if ($settings_service->is_hpos_enabled()) {
add_filter('handle_bulk_actions-woocommerce_page_wc-orders', array($this, 'handle_wc_bulk_actions'), 10, 2);
}class-dhlpwc-controller-admin-order.php:115
public function handle_wc_bulk_actions($redirect_to, $action)
{
switch ($action) {
case 'dhlpwc_download_label':
$this->download_label();
break;
case 'dhlpwc_download_labels':
$this->download_multiple_labels();
break;
case 'dhlpwc_print_labels':
$this->print_multiple_labels();
break;
default:
$bulk_parameters = $this->split_bulk_parameters($action);
$this->create_multiple_labels($bulk_parameters['size'], $bulk_parameters['service_options']);
break;
}
}I think this is caused by the ‘default’ statement. The plugin only seems to use this function on HPOS mode, that’s why it wasn’t a problem earlier. I’ve disabled our custom actions for now.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.