woocommerce_before_pay_action

woocommerce_before_pay_action

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_before_pay_action') is found 1 times:

  • /includes/class-wc-form-handler.php line 417
    			$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,