Support » Plugin: WooCommerce » Bulk Actions – Sort Dropdown / Menu Order

  • Resolved dashastone

    (@dashastone)


    how can I sort the dropdown list in Woocommerce under the orders section? For example, I want the “mark as paid” before another action – how can I sort them in a specific order? Thanks for any help.

    We added this as snippet, but it only brings “Delete” from bulk actions to end of dropdown list – how can we bring others to top?

    add_filter( ‘bulk_actions-woocommerce_page_wc-gzd-shipments’, ‘sort_bulk_action’, PHP_INT_MAX );
    function sort_bulk_action( $bulk_actions ) {
    $process = $bulk_actions[‘delete’];
    unset($bulk_actions[‘delete’]);
    $bulk_actions[‘delete’] = $process;
    return $bulk_actions;
    }

Viewing 1 replies (of 1 total)
  • Hi @dashastone

    Thanks for reaching out!

    I understand that you want to add another item on the dropdown menu under WooCommerce > Orders.

    What you want to achieve is a bit complex and would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    We have our WooCommerce Developer Resources Portal that can help you get going.

    You can also visit the WooCommerce Community Forum, the WooCommerce FB group, or the #developers channel of our Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Another option is to check our customizations page to hire an expert that can create a custom solution for you: https://woocommerce.com/experts/

Viewing 1 replies (of 1 total)
  • The topic ‘Bulk Actions – Sort Dropdown / Menu Order’ is closed to new replies.