woocommerce_checkout_postcode_validation_notice filter-hookWC 1.0

translators: %s: field name

Usage

add_filter( 'woocommerce_checkout_postcode_validation_notice', 'wp_kama_woocommerce_checkout_postcode_validation_notice_filter', 10, 3 );

/**
 * Function for `woocommerce_checkout_postcode_validation_notice` filter-hook.
 * 
 * @param  $postcode_validation_notice 
 * @param  $country                    
 * @param  $key ]                      
 *
 * @return 
 */
function wp_kama_woocommerce_checkout_postcode_validation_notice_filter( $postcode_validation_notice, $country, $key ] ){

	// filter...
	return $postcode_validation_notice;
}
$postcode_validation_notice
-
$country
-
$key ]
-

Where the hook is called

WC_Checkout::validate_posted_data()
woocommerce_checkout_postcode_validation_notice
woocommerce/includes/class-wc-checkout.php 792
$errors->add( $key . '_validation', apply_filters( 'woocommerce_checkout_postcode_validation_notice', $postcode_validation_notice, $country, $data[ $key ] ), array( 'id' => $key ) );

Where the hook is used in WooCommerce

Usage not found.