woocommerce_payment_successful_result filter-hookWC 1.0

Usage

add_filter( 'woocommerce_payment_successful_result', 'wp_kama_woocommerce_payment_successful_result_filter', 10, 2 );

/**
 * Function for `woocommerce_payment_successful_result` filter-hook.
 * 
 * @param  $result   
 * @param  $order_id 
 *
 * @return 
 */
function wp_kama_woocommerce_payment_successful_result_filter( $result, $order_id ){

	// filter...
	return $result;
}
$result
-
$order_id
-

Where the hook is called

WC_Checkout::process_order_payment()
woocommerce_payment_successful_result
WC_Form_Handler::pay_action()
woocommerce_payment_successful_result
woocommerce/includes/class-wc-checkout.php 1068
$result = apply_filters( 'woocommerce_payment_successful_result', $result, $order_id );
woocommerce/includes/class-wc-form-handler.php 463
$result = apply_filters( 'woocommerce_payment_successful_result', $result, $order_id );

Where the hook is used in WooCommerce

Usage not found.