Last active
October 9, 2020 13:03
-
-
Save zorem/9d375c96e5e9c271eef0d6140bb6093e to your computer and use it in GitHub Desktop.
Add your custom order status in bulk action dropdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'bulk_actions-edit-shop_order', 'add_bulk_actions_change_order_status' , 50, 1 ); | |
function add_bulk_actions_change_order_status($bulk_actions){ | |
// Replace 'my-custom-status' with your custom order status slug | |
// Replace 'My Custom Status' with your custom order status name | |
$bulk_actions['mark_my-custom-status'] = __( 'Change status to My Custom Status', 'woocommerce' ); | |
return $bulk_actions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment