• Hi,

    How can I remove the entry “DHL Request Pickup” from the Bulk actions drop-down menu in the order list? I don’t need this function and since it’s next to the “create labels” entry I would like to prevent an incorrect selection by mistake.

    Thanks!

    • This topic was modified 3 years, 4 months ago by gmwp1111.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter gmwp1111

    (@gmwp1111)

    I was able to remove the item by commenting out the line 'pr_dhl_request_pickup' => __( 'DHL Request Pickup', 'dhl-for-woocommerce' ) in the get_bulk_actions() function in class-pr-dhl-wc-order-paket.php

    Is there a better possibility via a PHP snippet since my solution will be overwritten by a plugin update?

    I have tried the code below but that didn’t work:

    
    add_filter( 'bulk_actions-edit-shop_order', 'remove_a_bulk_order_action', 20, 1 );
    function remove_a_bulk_order_action( $actions ) {
        unset($actions['pr_dhl_request_pickup']);
    
        return $actions;
    }
    • This reply was modified 3 years, 4 months ago by gmwp1111.
    Thread Starter gmwp1111

    (@gmwp1111)

    Is there any update on a possibility to hide the “DHL Request pickup” menu entry in the bulk actions?

    Thread Starter gmwp1111

    (@gmwp1111)

    At least an answer would be nice… Thanks!

    Plugin Author Shadi Manna

    (@shadim)

    You have to simply remove it in Javascript, not via the WP Filter.

    Thread Starter gmwp1111

    (@gmwp1111)

    Could you please tell, how to do it? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove “DHL Request pickup” from Bulk actions’ is closed to new replies.