woocommerce_payment_successful_result
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
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 );