Pass order ID to woocommerce_payment_successful_result Fixes #4378

This commit is contained in:
Mike Jolley 2013-12-23 15:47:56 +00:00
parent 329a96b452
commit 33f07a05a8
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ class WC_Checkout {
// Redirect to success/confirmation/payment page
if ( $result['result'] == 'success' ) {
$result = apply_filters( 'woocommerce_payment_successful_result', $result );
$result = apply_filters( 'woocommerce_payment_successful_result', $result, $order_id );
if ( is_ajax() ) {
echo '<!--WC_START-->' . json_encode( $result ) . '<!--WC_END-->';