I think I figured out ??
It might save you some time!
Open file wc-duplicate-order.php and on line 78 add this:
// ----------------
// Business Bloomer Patch
// ----------------
add_filter( 'woocommerce_admin_order_actions', 'clone_order_cta_new', 100, 2 );
function clone_order_cta_new( $actions, $order ) {
$order_id = method_exists( $order, 'get_id' ) ? $order->get_id() : $order->id;
$url = admin_url( 'edit.php?post_type=shop_order&order_id=' . $order_id );
$copy_link = wp_nonce_url( add_query_arg( array( 'duplicate' => 'init' ), $url ), 'duplicate_order_nonce', 'duplicate-order-nonce' );
$actions['duplicate'] = array(
'url' => $copy_link,
'name' => __( 'Duplicate', 'woocommerce' ),
'action' => "view duplicate", // keep "view" class for a clean button CSS
);
return $actions;
}
add_action( 'admin_head', 'add_custom_order_status_actions_button_css' );
function add_custom_order_status_actions_button_css() {
echo '<style>.view.duplicate::after { font-family: WooCommerce !important; content: "\e007" !important; }</style>';
}
Hope this helps!
Rodolfo