woocommerce_blocks_validate_additional_field_

woocommerce_blocks_validate_additional_field_

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.6.1

apply_filters('woocommerce_blocks_validate_additional_field_') is found 1 times:

  • /src/Blocks/Domain/Services/CheckoutFields.php line 560
    			 * @param string|null      $address_type The type of address (billing, shipping, or null if the field is a contact/additional field).
    			 *
    			 * @since 8.6.0
    			 */
    			$filtered_result = apply_filters( 'woocommerce_blocks_validate_additional_field_' . $key, $error, $field_value, $request, $address_type );
    
    			if ( $error !== $filtered_result ) {
    
    				// Different WP_Error was returned. This would remove errors from other filters. Skip filtering and allow the order to place without validating this field.
    				// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
    				trigger_error(