Script to add mask in input phone the WooCommerce

Nov 7th, 2018 (edited)
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * WordPress Plugin: Masks Form Fields - https://wordpress.org/plugins/masks-form-fields/
  3.  * PHP - Custom script to add mask in input phone the WooCommerce. /wp-content/themes/YOUR-THEME/functions.php
  4. */
  5. add_action('wp_footer', function () {echo "<script type=\"text/javascript\">jQuery(document).ready(function($){ $(\"input[name='billing_phone']\").addClass(\"phone_us\"); });</script>";}, 11);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.