woocommerce_before_pay_action

woocommerce_before_pay_action

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_before_pay_action') is found 1 times:

  • /includes/class-wc-form-handler.php line 437
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    $order     = wc_get_order( $order_id );
     
    if ( $order_id === $order->get_id() && hash_equals( $order->get_order_key(), $order_key ) && $order->needs_payment() ) {
     
        do_action( 'woocommerce_before_pay_action', $order );
     
        WC()->customer->set_props(
            array(
                'billing_country'  => $order->get_billing_country() ? $order->get_billing_country() : null,
                'billing_state'    => $order->get_billing_state() ? $order->get_billing_state() : null,
                'billing_postcode' => $order->get_billing_postcode() ? $order->get_billing_postcode() : null,