Server IP : 162.0.217.223 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/backup/msckey.com/wp-content/plugins/recaptcha-woo/js/ |
Upload File : |
/* Woo Checkout */ jQuery( document ).ready(function() { jQuery( document.body ).on( 'update_checkout updated_checkout applied_coupon_in_checkout removed_coupon_in_checkout checkout_error', function() { if(jQuery('.g-recaptcha').length > 0) { if (typeof grecaptcha !== "undefined" && typeof grecaptcha.reset === "function") { var count = 0; jQuery(".g-recaptcha").each(function () { grecaptcha.reset(count); count++; }); } } }); }); /* Woo Checkout Block */ if ( wp && wp.data ) { var unsubscribe = wp.data.subscribe(function() { const recaptcha = document.querySelector('.g-recaptcha'); if(recaptcha) { grecaptcha.render(recaptcha, { sitekey: recaptcha.dataset.sitekey, callback: function(data) { wp.data.dispatch('wc/store/checkout').__internalSetExtensionData('rcfwc', { token: data }) } }); } unsubscribe(); }, 'wc/store/cart'); }