Hook a function to validate the input fields?

Top WooCommerce & WordPress Plugins Forums Custom Payment Gateways for WooCommerce Hook a function to validate the input fields?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #94298
    TJ
    Guest

    One more question, is it possible to hook a function to validate the input fields created?
    E.g. the customer enters an email or phone number and I like to have a server side check to validate his input?
    Best regards…

    #94299
    Tom Anbinder
    Moderator
    Plugin Support

    Hi again, TJ,

    I was going to add a filter as requested, however, I’ve realized that we can already do that with WooCommerce woocommerce_after_checkout_validation filter. Please check the “Developers” tab on the plugin page – I’ve just added an example for input fields extra validation there.

    Let me know if you have any questions.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.