Skip to content

Instantly share code, notes, and snippets.

@vanbo
Last active February 28, 2019 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanbo/131be94de30c465fce0f124caeb38bf1 to your computer and use it in GitHub Desktop.
Save vanbo/131be94de30c465fce0f124caeb38bf1 to your computer and use it in GitHub Desktop.
WooCommerce iPay88 change description
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