Skip to content

Instantly share code, notes, and snippets.

@lucasjahn
lucasjahn / functions.php
Last active June 19, 2024 08:03
Woocommerce Checkout - Display custom inline error messages (including custom validation messages)
<?php
/**
* adds custom js file to handle inline error messages
*/
add_action( 'woocommerce_after_checkout_form', 'add_custom_validation_script', 20 );
function add_custom_validation_script() {
wp_enqueue_script(