woocommerce_checkout_validate_order_before_payment

woocommerce_checkout_validate_order_before_payment

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

do_action('woocommerce_checkout_validate_order_before_payment') is found 1 times:

  • /src/StoreApi/Utilities/OrderController.php line 228
    		 * @param \WC_Order $order             The order object.
    		 * @param \WP_Error $validation_errors WP_Error object to add custom errors to.
    		 * @since 9.9.0
    		 */
    		do_action( 'woocommerce_checkout_validate_order_before_payment', $order, $validation_errors );
    
    		// Check if there are any errors after custom validation.
    		if ( $validation_errors->has_errors() ) {
    			throw new RouteException(
    				'woocommerce_rest_checkout_custom_validation_error',
    				esc_html( implode( ' ', $validation_errors->get_error_messages() ) ),