Last active
February 28, 2019 11:12
-
-
Save vanbo/131be94de30c465fce0f124caeb38bf1 to your computer and use it in GitHub Desktop.
WooCommerce iPay88 change description
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
add_filter( 'wc_ipay88_order_description', 'prefix_change_ipay88_payment_description', 10, 2 ); | |
/** | |
* @param $desc | |
* @param WC_Order $order | |
* | |
* @return string | |
*/ | |
function prefix_change_ipay88_payment_description( $desc, $order ) { | |
return sprintf( 'Payment for order %s', $order->get_order_number() ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment