Last active
April 20, 2019 07:21
-
-
Save webdados/2ff0230ba7e67c2e99d9a8b2b4f7e585 to your computer and use it in GitHub Desktop.
ifthen mbway use order number formatted instead of order id
This file contains 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( 'mbway_ifthen_webservice_desc', function( $desc, $order_id ) { | |
$order = wc_get_order( $order_id ); | |
return sprintf( '%s %s', get_bloginfo( 'name' ), $order->get_meta( '_order_number_formatted' ) ); | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment