I would like to manipulate the order key by removing wc_ from it.
Problem is, no matter what I do, wc_ is not removed.
Is there any way to do this?
add_filter( 'woocommerce_generate_order_key', 'woocommerce_generate_custom_order_key', 10, 1 );
function woocommerce_generate_custom_order_key($order_key){
$order_key = str_replace( 'wc_', '', $order_key );
return $order_key;
}